blob: 8c6a5672ba3268212fd06573db62cc50588cae50 [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
Pau Espin Pedrolafa2fc32020-05-06 17:29:50 +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
Pau Espin Pedrolafa2fc32020-05-06 17:29:50 +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