Skip to content

Docs: Fix commands given in the examples #41

Docs: Fix commands given in the examples

Docs: Fix commands given in the examples #41

GitHub Actions / JUnit Test Report failed Dec 18, 2024 in 0s

31 tests run, 19 passed, 11 skipped, 1 failed.

Annotations

Check failure on line 1 in tests/test_O1_workflow.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_O1_workflow.test_ValidateSynthesis@group_O1

failed on setup with "subprocess.CalledProcessError: Command '['brainbuilder', 'atlases', '-n', '6,5,4,3,2,1', '-t', '200,100,100,100,100,200', '-d', '100', '-o', '/home/runner/work/synthesis-workflow/synthesis-workflow/.tox/py310/tmp/popen-gw1/test_ValidateSynthesis0/small_O1', 'column', '-a', '1000']' returned non-zero exit status 1."
Raw output
tmp_path = PosixPath('/home/runner/work/synthesis-workflow/synthesis-workflow/.tox/py310/tmp/popen-gw1/test_ValidateSynthesis0')

    @pytest.fixture
    def small_O1(tmp_path):
        """Dump a small O1 atlas in folder path."""
        atlas_dir = tmp_path / "small_O1"
        # fmt: off
        with open(os.devnull, "w", encoding="utf-8") as f:
>           check_call(["brainbuilder", "atlases",
                        "-n", "6,5,4,3,2,1",
                        "-t", "200,100,100,100,100,200",
                        "-d", "100",
                        "-o", str(atlas_dir),
                        "column",
                        "-a", "1000",
                        ], stdout=f, stderr=f)

/home/runner/work/synthesis-workflow/synthesis-workflow/tests/conftest.py:50: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['brainbuilder', 'atlases', '-n', '6,5,4,3,2,1', '-t', '200,100,100,100,100,200', ...],)
kwargs = {'stderr': <_io.TextIOWrapper name='/dev/null' mode='w' encoding='utf-8'>, 'stdout': <_io.TextIOWrapper name='/dev/null' mode='w' encoding='utf-8'>}
retcode = 1
cmd = ['brainbuilder', 'atlases', '-n', '6,5,4,3,2,1', '-t', '200,100,100,100,100,200', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['brainbuilder', 'atlases', '-n', '6,5,4,3,2,1', '-t', '200,100,100,100,100,200', '-d', '100', '-o', '/home/runner/work/synthesis-workflow/synthesis-workflow/.tox/py310/tmp/popen-gw1/test_ValidateSynthesis0/small_O1', 'column', '-a', '1000']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError