blob: 7434a10acfe0c387118cce1a3e101551783e138e [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 Pedrol0ffb4142017-05-15 18:24:35 +02007['last_run', 'run.[TIMESTAMP]', '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",)