diff options
author | Mike Frysinger <vapier@chromium.org> | 2015-01-20 18:36:21 -0500 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-21 08:25:42 +0000 |
commit | 27f1347d05b31d7b61462c3c469eea0ec5f7a386 (patch) | |
tree | c82c579ba6a26a4e339d0557109bc85b1293f580 /cbuildbot/stages/test_stages_unittest | |
parent | 8dcf2be980dd32ab1d021a133a400234935d1090 (diff) | |
download | chromite-27f1347d05b31d7b61462c3c469eea0ec5f7a386.tar.gz |
cros_test_lib: use better names in test output
The current test output looks like:
testAssign (__main__.CacheReferenceTest)
Verify Assign works as expected. ... ok
testFetchNonGs (__main__.RemoteCacheTest)
Verify we fetch remote URLs and save the result. ... FAIL
...
======================================================================
FAIL: testFetchNonGs (__main__.RemoteCacheTest)
Verify we fetch remote URLs and save the result.
----------------------------------------------------------------------
This makes it a pain to copy & paste the output back to the unittest
invocation to quickly run a few tests. Lets change it to:
[__main__] CacheReferenceTest.testAssign
Verify Assign works as expected. ... ok
[__main__] RemoteCacheTest.testFetchNonGs
Verify we fetch remote URLs and save the result. ... FAIL
...
======================================================================
FAIL: [__main__] RemoteCacheTest.testFetchNonGs
Verify we fetch remote URLs and save the result.
----------------------------------------------------------------------
Now you can quickly copy & paste things w/out manual fixups:
$ ./lib/cache_unittest.py RemoteCacheTest.testFetchNonGs
BUG=None
TEST=`./lib/cache_unittest.py -v` output looks good
TEST=`./lib/cache_unittest.py` w/local error added output looks good
Change-Id: I8cfec83b48c98308bdb44ad7a58cbecf8059c073
Reviewed-on: https://chromium-review.googlesource.com/242110
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'cbuildbot/stages/test_stages_unittest')
0 files changed, 0 insertions, 0 deletions