[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")
(assert-equal "3678208 sectors" stdout)
(assert-eof stderr)))
)
)

View File

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

View File

@ -11,7 +11,7 @@
(process)
(scenario-string-constants)
(temp-file)
(thin-xml)
(thin xml)
(srfi s8 receive))
(define-tool thin-check)
@ -253,7 +253,9 @@
(define-scenario (thin-delta unrecognised-option)
"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)
"Fails without --snap1 fails"