blob: 66dcff03a5b87d1879c262a1b63a3d018c058300 [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
Neels Hofmeyr17c139e2017-04-12 02:42:02 +02006first
Neels Hofmeyr3531a192017-03-28 14:30:28 +02007['taken']
Neels Hofmeyr17c139e2017-04-12 02:42:02 +02008second
9third
Neels Hofmeyr3531a192017-03-28 14:30:28 +020010- 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",)