Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 1 | - make a few trials dirs |
| 2 | [TMP]/first |
| 3 | [TMP]/second |
| 4 | [TMP]/third |
| 5 | - fetch trial dirs in order |
| 6 | [TMP]/first |
| 7 | ['taken'] |
| 8 | [TMP]/second |
| 9 | [TMP]/third |
| 10 | - no more trial dirs left |
| 11 | None |
| 12 | - test checksum verification |
| 13 | - detect wrong checksum |
| 14 | ok, got RuntimeError("Checksum mismatch for 'trial_test/invalid_checksum/file2' vs. 'trial_test/invalid_checksum/checksums.md5' line 2",) |
| 15 | - detect missing file |
| 16 | ok, got RuntimeError("File listed in checksums file but missing in trials dir: 'trial_test/missing_file/file2' vs. 'trial_test/missing_file/checksums.md5' line 2",) |