[functional-tests] Improve the (thin-delta unrecognised-option) test

This commit is contained in:
Joe Thornber 2017-09-15 12:26:54 +01:00
parent 4d3733d0e7
commit 738ab8391d
3 changed files with 5 additions and 5 deletions

View File

@ -326,5 +326,4 @@
(receive (stdout stderr) (cache-metadata-size "--nr-blocks 67108864") (receive (stdout stderr) (cache-metadata-size "--nr-blocks 67108864")
(assert-equal "3678208 sectors" stdout) (assert-equal "3678208 sectors" stdout)
(assert-eof stderr))) (assert-eof stderr)))
)
)

View File

@ -28,7 +28,6 @@
(logging) (logging)
(process) (process)
(temp-file) (temp-file)
(thin-xml)
(utils) (utils)
(srfi s8 receive)) (srfi s8 receive))

View File

@ -11,7 +11,7 @@
(process) (process)
(scenario-string-constants) (scenario-string-constants)
(temp-file) (temp-file)
(thin-xml) (thin xml)
(srfi s8 receive)) (srfi s8 receive))
(define-tool thin-check) (define-tool thin-check)
@ -253,7 +253,9 @@
(define-scenario (thin-delta unrecognised-option) (define-scenario (thin-delta unrecognised-option)
"Unrecognised option should cause failure" "Unrecognised option should cause failure"
(run-fail "thin_delta --unleash-the-hedgehogs")) (with-valid-metadata (md)
(receive (stdout stderr) (run-fail "thin_delta --unleash-the-hedgehogs")
(assert-starts-with "thin_delta: unrecognized option '--unleash-the-hedgehogs" stderr))))
(define-scenario (thin-delta snap1-unspecified) (define-scenario (thin-delta snap1-unspecified)
"Fails without --snap1 fails" "Fails without --snap1 fails"