[functional-tests] Fix *_check/tiny-input-file
This commit is contained in:
parent
817fd9a06c
commit
8e2a415bdc
@ -134,9 +134,9 @@
|
||||
(run-fail "cache_check" md))))
|
||||
|
||||
(define-scenario (cache-check tiny-metadata)
|
||||
"Prints helpful message in case XML metadata given"
|
||||
(with-cache-xml (xml)
|
||||
(receive (_ stderr) (run-fail "cache_check" xml)
|
||||
"Prints helpful message in case tiny metadata given"
|
||||
(with-temp-file-sized ((md "cache.bin" 1024))
|
||||
(receive (_ stderr) (run-fail "cache_check" md)
|
||||
(assert-starts-with "Metadata device/file too small. Is this binary metadata?" stderr))))
|
||||
|
||||
(define-scenario (cache-check spot-accidental-xml-data)
|
||||
|
@ -108,9 +108,9 @@
|
||||
(assert-eof stderr))))
|
||||
|
||||
(define-scenario (era-check tiny-metadata)
|
||||
"Prints helpful message in case XML metadata given"
|
||||
(with-era-xml (xml)
|
||||
(receive (_ stderr) (run-fail "era_check" xml)
|
||||
"Prints helpful message in case tiny metadata given"
|
||||
(with-temp-file-sized ((md "era.bin" 1024))
|
||||
(receive (_ stderr) (run-fail "era_check" md)
|
||||
(assert-starts-with "Metadata device/file too small. Is this binary metadata?" stderr))))
|
||||
|
||||
(define-scenario (era-check spot-accidental-xml-data)
|
||||
|
@ -114,9 +114,9 @@
|
||||
(thin-check "--clear-needs-check-flag" md)))
|
||||
|
||||
(define-scenario (thin-check tiny-metadata)
|
||||
"Prints helpful message in case XML metadata given"
|
||||
(with-thin-xml (xml)
|
||||
(receive (_ stderr) (run-fail "thin_check" xml)
|
||||
"Prints helpful message in case tiny metadata given"
|
||||
(with-temp-file-sized ((md "thin.bin" 1024))
|
||||
(receive (_ stderr) (run-fail "thin_check" md)
|
||||
(assert-starts-with "Metadata device/file too small. Is this binary metadata?" stderr))))
|
||||
|
||||
(define-scenario (thin-check spot-accidental-xml-data)
|
||||
|
Loading…
Reference in New Issue
Block a user