Skip to content

Instantly share code, notes, and snippets.

@clayg
Created January 17, 2017 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/81be81ef339c7cc276b34c04be6c218c to your computer and use it in GitHub Desktop.
Save clayg/81be81ef339c7cc276b34c04be6c218c to your computer and use it in GitHub Desktop.
ubuntu@saio:~$ for i in {1..10}; do nosetests swift/test/unit/obj/test_diskfile.py:TestSuffixHashes.test_contains_hashes_of_existing_partition -vsx; if [ $? -ne 0 ]; then break; fi; done
test_contains_hashes_of_existing_partition (test.unit.obj.test_diskfile.TestSuffixHashes) ... suffix-hash-test DEBUG: Run listdir on /tmp/tmpCb_evI/node/sda1/objects/0
suffix-hash-test DEBUG: Run listdir on /tmp/tmpCb_evI/node/sda1/objects-1/0
ok
----------------------------------------------------------------------
Ran 1 test in 0.043s
OK
test_contains_hashes_of_existing_partition (test.unit.obj.test_diskfile.TestSuffixHashes) ... suffix-hash-test DEBUG: Run listdir on /tmp/tmplWFsH0/node/sda1/objects/0
suffix-hash-test DEBUG: Run listdir on /tmp/tmplWFsH0/node/sda1/objects-1/0
ok
----------------------------------------------------------------------
Ran 1 test in 0.036s
OK
test_contains_hashes_of_existing_partition (test.unit.obj.test_diskfile.TestSuffixHashes) ... suffix-hash-test DEBUG: Run listdir on /tmp/tmp2ZeCV_/node/sda1/objects/0
suffix-hash-test DEBUG: Run listdir on /tmp/tmp2ZeCV_/node/sda1/objects-1/0
ok
----------------------------------------------------------------------
Ran 1 test in 0.033s
OK
test_contains_hashes_of_existing_partition (test.unit.obj.test_diskfile.TestSuffixHashes) ... suffix-hash-test DEBUG: Run listdir on /tmp/tmpD_gTbA/node/sda1/objects/0
suffix-hash-test DEBUG: Run listdir on /tmp/tmpD_gTbA/node/sda1/objects-1/0
FAIL
======================================================================
FAIL: test_contains_hashes_of_existing_partition (test.unit.obj.test_diskfile.TestSuffixHashes)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/swift/test/unit/obj/test_diskfile.py", line 6150, in test_contains_hashes_of_existing_partition
self.assertIn(suffix2, hashes)
AssertionError: '23d' not found in {'bbe': '27c7c24c175ffa4e8a6a8ec312408640'}
----------------------------------------------------------------------
Ran 1 test in 0.048s
FAILED (failures=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment