blob: 6ad39a971d152053481415f3f1e23eb8ffeb6e68 [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
Pau Espin Pedrol5bf66c52017-05-23 17:40:23 +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
Neels Hofmeyre44a0cb2017-05-14 03:25:45 +020014ok, got RuntimeError("Checksum mismatch for '[PATH]/trial_test/invalid_checksum/file2' vs. '[PATH]/trial_test/invalid_checksum/checksums.md5' line 2",)
Neels Hofmeyr3531a192017-03-28 14:30:28 +020015- detect missing file
Neels Hofmeyre44a0cb2017-05-14 03:25:45 +020016ok, 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",)