Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =================================================== test session starts ====================================================
- platform linux -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0
- rootdir: /mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools
- collected 28 items
- tests/test_basic.py .FFFFF [ 21%]
- tests/test_fixture.py ....ssssss.. [ 64%]
- tests/test_fuse.py ssssssssss [100%]
- ========================================================= FAILURES =========================================================
- _______________________________________________________ test_format ________________________________________________________
- tmpdir = local('/tmp/pytest-of-alex/pytest-3/test_format0')
- def test_format(tmpdir):
- dev = util.device_1g(tmpdir)
- ret = util.run_bch('format', dev, valgrind=False)
- > assert ret.returncode == 0
- E AssertionError: assert 1 == 0
- E + where 1 = CompletedProcess(args=['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath(...ce initialized: 0\n', stderr='error opening /tmp/pytest-of-alex/pytest-3/test_format0/dev-1g: Invalid argument\n').returncode
- tests/test_basic.py:19: AssertionError
- --------------------------------------------------- Captured stdout call ---------------------------------------------------
- Running '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_format0/dev-1g')]'
- ________________________________________________________ test_fsck _________________________________________________________
- tmpdir = local('/tmp/pytest-of-alex/pytest-3/test_fsck0')
- def test_fsck(tmpdir):
- > dev = util.format_1g(tmpdir)
- tests/test_basic.py:24:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/util.py:92: in format_1g
- run_bch('format', dev, check=True)
- tests/util.py:71: in run_bch
- return run(*cmds, **kwargs)
- tests/util.py:63: in run
- res = subprocess.run(cmds, stdout=subprocess.PIPE,
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- input = None, capture_output = False, timeout = None, check = True
- popenargs = (['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_fsck0/dev-1g')],)
- kwargs = {'encoding': 'utf-8', 'stderr': -1, 'stdout': -1}
- process = <Popen: returncode: 1 args: ['/mnt/builds/ccached/simple-bcachefs-tools-git/...>
- stdout = 'External UUID: c9908721-7d1a-47fa-beec-cb4f56fa3fe9\nInternal UUID: f1c3f683-bdf5-4...e,user\n Has data: (none)\n Discard: 0\n Freespace initialized: 0\n'
- stderr = 'error opening /tmp/pytest-of-alex/pytest-3/test_fsck0/dev-1g: Invalid argument\n', retcode = 1
- def run(*popenargs,
- input=None, capture_output=False, timeout=None, check=False, **kwargs):
- """Run command with arguments and return a CompletedProcess instance.
- The returned instance will have attributes args, returncode, stdout and
- stderr. By default, stdout and stderr are not captured, and those attributes
- will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
- If check is True and the exit code was non-zero, it raises a
- CalledProcessError. The CalledProcessError object will have the return code
- in the returncode attribute, and output & stderr attributes if those streams
- were captured.
- If timeout is given, and the process takes too long, a TimeoutExpired
- exception will be raised.
- There is an optional argument "input", allowing you to
- pass bytes or a string to the subprocess's stdin. If you use this argument
- you may not also use the Popen constructor's "stdin" argument, as
- it will be used internally.
- By default, all communication is in bytes, and therefore any "input" should
- be bytes, and the stdout and stderr will be bytes. If in text mode, any
- "input" should be a string, and stdout and stderr will be strings decoded
- according to locale encoding, or by "encoding" if set. Text mode is
- triggered by setting any of text, encoding, errors or universal_newlines.
- The other arguments are the same as for the Popen constructor.
- """
- if input is not None:
- if kwargs.get('stdin') is not None:
- raise ValueError('stdin and input arguments may not both be used.')
- kwargs['stdin'] = PIPE
- if capture_output:
- if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
- raise ValueError('stdout and stderr arguments may not be used '
- 'with capture_output.')
- kwargs['stdout'] = PIPE
- kwargs['stderr'] = PIPE
- with Popen(*popenargs, **kwargs) as process:
- try:
- stdout, stderr = process.communicate(input, timeout=timeout)
- except TimeoutExpired as exc:
- process.kill()
- if _mswindows:
- # Windows accumulates the output in a single blocking
- # read() call run on child threads, with the timeout
- # being done in a join() on those threads. communicate()
- # _after_ kill() is required to collect that and add it
- # to the exception.
- exc.stdout, exc.stderr = process.communicate()
- else:
- # POSIX _communicate already populated the output so
- # far into the TimeoutExpired exception.
- process.wait()
- raise
- except: # Including KeyboardInterrupt, communicate handled that.
- process.kill()
- # We don't call process.wait() as .__exit__ does that for us.
- raise
- retcode = process.poll()
- if check and retcode:
- > raise CalledProcessError(retcode, process.args,
- output=stdout, stderr=stderr)
- E subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_fsck0/dev-1g')]' returned non-zero exit status 1.
- /usr/lib/python3.10/subprocess.py:524: CalledProcessError
- --------------------------------------------------- Captured stdout call ---------------------------------------------------
- Running '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_fsck0/dev-1g')]'
- ________________________________________________________ test_list _________________________________________________________
- tmpdir = local('/tmp/pytest-of-alex/pytest-3/test_list0')
- def test_list(tmpdir):
- > dev = util.format_1g(tmpdir)
- tests/test_basic.py:33:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/util.py:92: in format_1g
- run_bch('format', dev, check=True)
- tests/util.py:71: in run_bch
- return run(*cmds, **kwargs)
- tests/util.py:63: in run
- res = subprocess.run(cmds, stdout=subprocess.PIPE,
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- input = None, capture_output = False, timeout = None, check = True
- popenargs = (['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list0/dev-1g')],)
- kwargs = {'encoding': 'utf-8', 'stderr': -1, 'stdout': -1}
- process = <Popen: returncode: 1 args: ['/mnt/builds/ccached/simple-bcachefs-tools-git/...>
- stdout = 'External UUID: 525a6d19-afe8-4f94-9df4-9dc968daf267\nInternal UUID: 1b68d742-3e2c-4...e,user\n Has data: (none)\n Discard: 0\n Freespace initialized: 0\n'
- stderr = 'error opening /tmp/pytest-of-alex/pytest-3/test_list0/dev-1g: Invalid argument\n', retcode = 1
- def run(*popenargs,
- input=None, capture_output=False, timeout=None, check=False, **kwargs):
- """Run command with arguments and return a CompletedProcess instance.
- The returned instance will have attributes args, returncode, stdout and
- stderr. By default, stdout and stderr are not captured, and those attributes
- will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
- If check is True and the exit code was non-zero, it raises a
- CalledProcessError. The CalledProcessError object will have the return code
- in the returncode attribute, and output & stderr attributes if those streams
- were captured.
- If timeout is given, and the process takes too long, a TimeoutExpired
- exception will be raised.
- There is an optional argument "input", allowing you to
- pass bytes or a string to the subprocess's stdin. If you use this argument
- you may not also use the Popen constructor's "stdin" argument, as
- it will be used internally.
- By default, all communication is in bytes, and therefore any "input" should
- be bytes, and the stdout and stderr will be bytes. If in text mode, any
- "input" should be a string, and stdout and stderr will be strings decoded
- according to locale encoding, or by "encoding" if set. Text mode is
- triggered by setting any of text, encoding, errors or universal_newlines.
- The other arguments are the same as for the Popen constructor.
- """
- if input is not None:
- if kwargs.get('stdin') is not None:
- raise ValueError('stdin and input arguments may not both be used.')
- kwargs['stdin'] = PIPE
- if capture_output:
- if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
- raise ValueError('stdout and stderr arguments may not be used '
- 'with capture_output.')
- kwargs['stdout'] = PIPE
- kwargs['stderr'] = PIPE
- with Popen(*popenargs, **kwargs) as process:
- try:
- stdout, stderr = process.communicate(input, timeout=timeout)
- except TimeoutExpired as exc:
- process.kill()
- if _mswindows:
- # Windows accumulates the output in a single blocking
- # read() call run on child threads, with the timeout
- # being done in a join() on those threads. communicate()
- # _after_ kill() is required to collect that and add it
- # to the exception.
- exc.stdout, exc.stderr = process.communicate()
- else:
- # POSIX _communicate already populated the output so
- # far into the TimeoutExpired exception.
- process.wait()
- raise
- except: # Including KeyboardInterrupt, communicate handled that.
- process.kill()
- # We don't call process.wait() as .__exit__ does that for us.
- raise
- retcode = process.poll()
- if check and retcode:
- > raise CalledProcessError(retcode, process.args,
- output=stdout, stderr=stderr)
- E subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list0/dev-1g')]' returned non-zero exit status 1.
- /usr/lib/python3.10/subprocess.py:524: CalledProcessError
- --------------------------------------------------- Captured stdout call ---------------------------------------------------
- Running '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list0/dev-1g')]'
- _____________________________________________________ test_list_inodes _____________________________________________________
- tmpdir = local('/tmp/pytest-of-alex/pytest-3/test_list_inodes0')
- def test_list_inodes(tmpdir):
- > dev = util.format_1g(tmpdir)
- tests/test_basic.py:42:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/util.py:92: in format_1g
- run_bch('format', dev, check=True)
- tests/util.py:71: in run_bch
- return run(*cmds, **kwargs)
- tests/util.py:63: in run
- res = subprocess.run(cmds, stdout=subprocess.PIPE,
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- input = None, capture_output = False, timeout = None, check = True
- popenargs = (['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list_inodes0/dev-1g')],)
- kwargs = {'encoding': 'utf-8', 'stderr': -1, 'stdout': -1}
- process = <Popen: returncode: 1 args: ['/mnt/builds/ccached/simple-bcachefs-tools-git/...>
- stdout = 'External UUID: afb20bc3-bc5d-4fa5-ac21-75d19a17ec52\nInternal UUID: a4a2063e-2721-4...e,user\n Has data: (none)\n Discard: 0\n Freespace initialized: 0\n'
- stderr = 'error opening /tmp/pytest-of-alex/pytest-3/test_list_inodes0/dev-1g: Invalid argument\n', retcode = 1
- def run(*popenargs,
- input=None, capture_output=False, timeout=None, check=False, **kwargs):
- """Run command with arguments and return a CompletedProcess instance.
- The returned instance will have attributes args, returncode, stdout and
- stderr. By default, stdout and stderr are not captured, and those attributes
- will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
- If check is True and the exit code was non-zero, it raises a
- CalledProcessError. The CalledProcessError object will have the return code
- in the returncode attribute, and output & stderr attributes if those streams
- were captured.
- If timeout is given, and the process takes too long, a TimeoutExpired
- exception will be raised.
- There is an optional argument "input", allowing you to
- pass bytes or a string to the subprocess's stdin. If you use this argument
- you may not also use the Popen constructor's "stdin" argument, as
- it will be used internally.
- By default, all communication is in bytes, and therefore any "input" should
- be bytes, and the stdout and stderr will be bytes. If in text mode, any
- "input" should be a string, and stdout and stderr will be strings decoded
- according to locale encoding, or by "encoding" if set. Text mode is
- triggered by setting any of text, encoding, errors or universal_newlines.
- The other arguments are the same as for the Popen constructor.
- """
- if input is not None:
- if kwargs.get('stdin') is not None:
- raise ValueError('stdin and input arguments may not both be used.')
- kwargs['stdin'] = PIPE
- if capture_output:
- if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
- raise ValueError('stdout and stderr arguments may not be used '
- 'with capture_output.')
- kwargs['stdout'] = PIPE
- kwargs['stderr'] = PIPE
- with Popen(*popenargs, **kwargs) as process:
- try:
- stdout, stderr = process.communicate(input, timeout=timeout)
- except TimeoutExpired as exc:
- process.kill()
- if _mswindows:
- # Windows accumulates the output in a single blocking
- # read() call run on child threads, with the timeout
- # being done in a join() on those threads. communicate()
- # _after_ kill() is required to collect that and add it
- # to the exception.
- exc.stdout, exc.stderr = process.communicate()
- else:
- # POSIX _communicate already populated the output so
- # far into the TimeoutExpired exception.
- process.wait()
- raise
- except: # Including KeyboardInterrupt, communicate handled that.
- process.kill()
- # We don't call process.wait() as .__exit__ does that for us.
- raise
- retcode = process.poll()
- if check and retcode:
- > raise CalledProcessError(retcode, process.args,
- output=stdout, stderr=stderr)
- E subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list_inodes0/dev-1g')]' returned non-zero exit status 1.
- /usr/lib/python3.10/subprocess.py:524: CalledProcessError
- --------------------------------------------------- Captured stdout call ---------------------------------------------------
- Running '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list_inodes0/dev-1g')]'
- _____________________________________________________ test_list_dirent _____________________________________________________
- tmpdir = local('/tmp/pytest-of-alex/pytest-3/test_list_dirent0')
- def test_list_dirent(tmpdir):
- > dev = util.format_1g(tmpdir)
- tests/test_basic.py:51:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- tests/util.py:92: in format_1g
- run_bch('format', dev, check=True)
- tests/util.py:71: in run_bch
- return run(*cmds, **kwargs)
- tests/util.py:63: in run
- res = subprocess.run(cmds, stdout=subprocess.PIPE,
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- input = None, capture_output = False, timeout = None, check = True
- popenargs = (['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list_dirent0/dev-1g')],)
- kwargs = {'encoding': 'utf-8', 'stderr': -1, 'stdout': -1}
- process = <Popen: returncode: 1 args: ['/mnt/builds/ccached/simple-bcachefs-tools-git/...>
- stdout = 'External UUID: 82cd9184-33b2-46e0-872a-562c0748a4e2\nInternal UUID: 3bb6f649-2acb-4...e,user\n Has data: (none)\n Discard: 0\n Freespace initialized: 0\n'
- stderr = 'error opening /tmp/pytest-of-alex/pytest-3/test_list_dirent0/dev-1g: Invalid argument\n', retcode = 1
- def run(*popenargs,
- input=None, capture_output=False, timeout=None, check=False, **kwargs):
- """Run command with arguments and return a CompletedProcess instance.
- The returned instance will have attributes args, returncode, stdout and
- stderr. By default, stdout and stderr are not captured, and those attributes
- will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.
- If check is True and the exit code was non-zero, it raises a
- CalledProcessError. The CalledProcessError object will have the return code
- in the returncode attribute, and output & stderr attributes if those streams
- were captured.
- If timeout is given, and the process takes too long, a TimeoutExpired
- exception will be raised.
- There is an optional argument "input", allowing you to
- pass bytes or a string to the subprocess's stdin. If you use this argument
- you may not also use the Popen constructor's "stdin" argument, as
- it will be used internally.
- By default, all communication is in bytes, and therefore any "input" should
- be bytes, and the stdout and stderr will be bytes. If in text mode, any
- "input" should be a string, and stdout and stderr will be strings decoded
- according to locale encoding, or by "encoding" if set. Text mode is
- triggered by setting any of text, encoding, errors or universal_newlines.
- The other arguments are the same as for the Popen constructor.
- """
- if input is not None:
- if kwargs.get('stdin') is not None:
- raise ValueError('stdin and input arguments may not both be used.')
- kwargs['stdin'] = PIPE
- if capture_output:
- if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
- raise ValueError('stdout and stderr arguments may not be used '
- 'with capture_output.')
- kwargs['stdout'] = PIPE
- kwargs['stderr'] = PIPE
- with Popen(*popenargs, **kwargs) as process:
- try:
- stdout, stderr = process.communicate(input, timeout=timeout)
- except TimeoutExpired as exc:
- process.kill()
- if _mswindows:
- # Windows accumulates the output in a single blocking
- # read() call run on child threads, with the timeout
- # being done in a join() on those threads. communicate()
- # _after_ kill() is required to collect that and add it
- # to the exception.
- exc.stdout, exc.stderr = process.communicate()
- else:
- # POSIX _communicate already populated the output so
- # far into the TimeoutExpired exception.
- process.wait()
- raise
- except: # Including KeyboardInterrupt, communicate handled that.
- process.kill()
- # We don't call process.wait() as .__exit__ does that for us.
- raise
- retcode = process.poll()
- if check and retcode:
- > raise CalledProcessError(retcode, process.args,
- output=stdout, stderr=stderr)
- E subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list_dirent0/dev-1g')]' returned non-zero exit status 1.
- /usr/lib/python3.10/subprocess.py:524: CalledProcessError
- --------------------------------------------------- Captured stdout call ---------------------------------------------------
- Running '['/mnt/builds/ccached/simple-bcachefs-tools-git/1/bcachefs-tools/bcachefs', 'format', PosixPath('/tmp/pytest-of-alex/pytest-3/test_list_dirent0/dev-1g')]'
- ================================================= short test summary info ==================================================
- FAILED tests/test_basic.py::test_format - AssertionError: assert 1 == 0
- FAILED tests/test_basic.py::test_fsck - subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcachefs-too...
- FAILED tests/test_basic.py::test_list - subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcachefs-too...
- FAILED tests/test_basic.py::test_list_inodes - subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcach...
- FAILED tests/test_basic.py::test_list_dirent - subprocess.CalledProcessError: Command '['/mnt/builds/ccached/simple-bcach...
- ========================================= 5 failed, 7 passed, 16 skipped in 1.49s ==========================================
- make: *** [Makefile:90: check] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement