Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNM: use pytest #902

Closed
wants to merge 2 commits into from
Closed

DNM: use pytest #902

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 5, 2013

Up for review but needs to wait until #651 is merged

ceph/autobuild-ceph#4 probably reaches the build machines by now

@ghost
Copy link
Author

ghost commented Dec 14, 2013

rebased

Loic Dachary added 2 commits December 14, 2013 22:05
The standard logging module makes it easier to capture errors in a
meaningfull way and reduces the nosetest generated noise. For instance:

PASS: test/encoding/check-generated.sh
..............F....................................................
======================================================================
FAIL: test_ceph_argparse.TestOSD.test_blackist
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/loic/software/ceph/ceph/src/test/pybind/test_ceph_argparse.py", line 837, in test_blackist
    '1.2.3.4/nonce'])
  File "/home/loic/software/ceph/ceph/src/test/pybind/test_ceph_argparse.py", line 46, in assert_valid_command
    assert_not_in(result, [None, {}])
AssertionError: {} unexpectedly found in [None, {}]
-------------------- >> begin captured logging << --------------------
root: ERROR: Invalid command: 1.2.3.4/nonce: invalid entity, nonce nonce not integer > 0
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 128 tests in 19.425s

Although the logging format distinguishes between warning, errors etc
with standardized prefixes, the format is set to just the message so
that it does not interfere with the current way of constructing error
messages printed on stderr.

Add emacs mode line at the beginning to get syntax highlighting

Signed-off-by: Loic Dachary <loic@dachary.org>
Signed-off-by: Loic Dachary <loic@dachary.org>
@ghost
Copy link
Author

ghost commented Dec 16, 2013

pushed to ceph to check that gitbuilder succeeds

@ghost
Copy link
Author

ghost commented Dec 20, 2013

pytest is not in precise

@ghost ghost closed this Dec 20, 2013
liewegas pushed a commit that referenced this pull request Dec 14, 2016
rbd: add singleton to assert no rbdmap regression

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
0 participants