Created
January 10, 2015 01:28
-
-
Save jni/ee6a5b5e22da6d76474c to your computer and use it in GitHub Desktop.
sudo py.test fails on Travis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
travis@debug-hs-11922-jni-python-1420819368:~/jni/cellom2tif$ py.test | |
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4 | |
plugins: cov | |
collected 10 items | |
verify.py . | |
cellom2tif/cellom2tif.py .. | |
tests/test_cellom2tif.py . | |
tests/test_package.py .. | |
tests/test_zz_jvm_kill.py .... | |
--------------- coverage: platform linux2, python 2.7.3-final-0 ---------------- | |
Name Stmts Miss Cover Missing | |
------------------------------------------------------ | |
cellom2tif/__init__ 3 0 100% | |
cellom2tif/cellom2tif 77 14 82% 170, 186-205, 209 | |
cellom2tif/filetypes 6 2 67% 31-32 | |
setup 15 1 93% 25 | |
tests/test_cellom2tif 4 0 100% | |
tests/test_package 77 21 73% 72-85, 87, 92-98 | |
tests/test_zz_jvm_kill 19 0 100% | |
verify 42 21 50% 10-19, 64, 75-93 | |
------------------------------------------------------ | |
TOTAL 243 59 76% | |
========================== 10 passed in 5.06 seconds =========================== | |
travis@debug-hs-11922-jni-python-1420819368:~/jni/cellom2tif$ sudo py.test | |
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4 | |
plugins: cov | |
collected 10 items | |
verify.py . | |
cellom2tif/cellom2tif.py .. | |
tests/test_cellom2tif.py . | |
tests/test_package.py FF | |
tests/test_zz_jvm_kill.py .... | |
=================================== FAILURES =================================== | |
__________________________ test_runtime_ignore_masks ___________________________ | |
outdir = <open file 'test-output-2015-01-10-01-25-53.txt', mode 'w' at 0x33b3a50> | |
def test_runtime_ignore_masks(outdir): | |
call = ['python', 'bin/cellom2tif'] | |
flags = ['-m'] | |
indirs = [test_data_dir, test_output_mask_dir] | |
resdir = test_results_mask_dir | |
cmd_line = call + flags + indirs | |
sp.call(cmd_line, shell=False) | |
missing, not_equal = find_errors(indirs[1], resdir, ignore_masks=True) | |
> assert len(missing) == 0 | |
E assert 18 == 0 | |
E + where 18 = len(['test-data-results-m/d2/MFGTMP_120628160001_C18f03d0.tif', 'test-data-results-m/d2/MFGTMP_120628160001_C18f03d1.tif',...st-data-results-m/d2/MFGTMP_120628160001_C18f04d1.tif', 'test-data-results-m/d2/MFGTMP_120628160001_C18f04d2.tif', ...]) | |
tests/test_package.py:109: AssertionError | |
----------------------------- Captured stderr call ----------------------------- | |
log4j:WARN No appenders could be found for logger (loci.common.NIOByteBufferProvider). | |
log4j:WARN Please initialize the log4j system properly. | |
set(['MFGTMP_120628160001_C18f03d0.tif', 'MFGTMP_120628160001_C18f05d0.tif', 'MFGTMP_120628160001_C18f04d0.tif', 'MFGTMP_120628160001_C18f05d2.tif', 'MFGTMP_120628160001_C18f04d2.tif', 'MFGTMP_120628160001_C18f03d1.tif', 'MFGTMP_120628160001_C18f05d1.tif', 'MFGTMP_120628160001_C18f03d2.tif', 'MFGTMP_120628160001_C18f04d1.tif']) | |
_________________________________ test_runtime _________________________________ | |
outdir = <open file 'test-output-2015-01-10-01-25-59.txt', mode 'w' at 0x3485270> | |
def test_runtime(outdir): | |
call = ['python', 'bin/cellom2tif'] | |
indirs = [test_data_dir, test_output_dir] | |
resdir = test_results_dir | |
cmd_line = call + indirs | |
sp.call(cmd_line, shell=False) | |
missing, not_equal = find_errors(indirs[1], resdir, ignore_masks=True) | |
> assert len(missing) == 0 | |
E assert 24 == 0 | |
E + where 24 = len(['test-data-results/d2/MFGTMP_120628160001_C18f03d0.tif', 'test-data-results/d2/MFGTMP_120628160001_C18f03d1.tif', 'te... 'test-data-results/d2/MFGTMP_120628160001_C18f04d0.tif', 'test-data-results/d2/MFGTMP_120628160001_C18f04d1.tif', ...]) | |
tests/test_package.py:120: AssertionError | |
----------------------------- Captured stderr call ----------------------------- | |
log4j:WARN No appenders could be found for logger (loci.common.NIOByteBufferProvider). | |
log4j:WARN Please initialize the log4j system properly. | |
set(['MFGTMP_120628160001_C18f03d0.tif', 'MFGTMP_120628160001_C18f05o1.tif', 'MFGTMP_120628160001_C18f05d0.tif', 'MFGTMP_120628160001_C18f04d0.tif', 'MFGTMP_120628160001_C18f05d2.tif', 'MFGTMP_120628160001_C18f04d2.tif', 'MFGTMP_120628160001_C18f03d1.tif', 'MFGTMP_120628160001_C18f05d1.tif', 'MFGTMP_120628160001_C18f03d2.tif', 'MFGTMP_120628160001_C18f04o1.tif', 'MFGTMP_120628160001_C18f03o1.tif', 'MFGTMP_120628160001_C18f04d1.tif']) | |
--------------- coverage: platform linux2, python 2.7.3-final-0 ---------------- | |
Name Stmts Miss Cover Missing | |
------------------------------------------------------ | |
bin/cellom2tif 6 0 100% | |
cellom2tif/__init__ 3 0 100% | |
cellom2tif/cellom2tif 77 14 82% 170, 186-205, 209 | |
cellom2tif/filetypes 6 2 67% 31-32 | |
setup 15 1 93% 25 | |
tests/test_cellom2tif 4 0 100% | |
tests/test_package 77 14 82% 81-85, 92-98, 110, 121 | |
tests/test_zz_jvm_kill 19 0 100% | |
verify 42 21 50% 10-19, 64, 75-93 | |
------------------------------------------------------ | |
TOTAL 249 52 79% | |
===================== 2 failed, 8 passed in 18.65 seconds ====================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment