blob: 0b3e31a62c404bd895f4c6901fd7786f2594913a [file] [log] [blame]
Neels Hofmeyr3531a192017-03-28 14:30:28 +02001- 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
11None
12- test checksum verification
13- detect wrong checksum
14ok, got RuntimeError("Checksum mismatch for 'trial_test/invalid_checksum/file2' vs. 'trial_test/invalid_checksum/checksums.md5' line 2",)
15- detect missing file
16ok, 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",)