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 |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 6 | first |
Pau Espin Pedrol | 5bf66c5 | 2017-05-23 17:40:23 +0200 | [diff] [blame] | 7 | ['taken'] |
Neels Hofmeyr | 17c139e | 2017-04-12 02:42:02 +0200 | [diff] [blame] | 8 | second |
| 9 | third |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 10 | - no more trial dirs left |
| 11 | None |
| 12 | - test checksum verification |
| 13 | - detect wrong checksum |
Neels Hofmeyr | e44a0cb | 2017-05-14 03:25:45 +0200 | [diff] [blame] | 14 | ok, got RuntimeError("Checksum mismatch for '[PATH]/trial_test/invalid_checksum/file2' vs. '[PATH]/trial_test/invalid_checksum/checksums.md5' line 2",) |
Neels Hofmeyr | 3531a19 | 2017-03-28 14:30:28 +0200 | [diff] [blame] | 15 | - detect missing file |
Neels Hofmeyr | e44a0cb | 2017-05-14 03:25:45 +0200 | [diff] [blame] | 16 | ok, got RuntimeError("File listed in checksums file but missing in trials dir: '[PATH]/trial_test/missing_file/file2' vs. '[PATH]/trial_test/missing_file/checksums.md5' line 2",) |