Commit b4fb6e3c authored by Axel Beckert's avatar Axel Beckert

Output content of .since in case of test failure

parent 56f1132c
since (1.1-5) UNRELEASED; urgency=medium since (1.1-5) UNRELEASED; urgency=medium
* Make adequate messages trigger a failure in the adequate autopkgtest * Make adequate messages trigger a failure in the adequate autopkgtest
* Output content of .since in case of test failure
-- Axel Beckert <abe@debian.org> Mon, 31 Mar 2014 02:35:15 +0200 -- Axel Beckert <abe@debian.org> Mon, 31 Mar 2014 02:35:15 +0200
......
...@@ -14,23 +14,23 @@ rm -f .since example.txt example.txt ...@@ -14,23 +14,23 @@ rm -f .since example.txt example.txt
echo TESTING: -z echo TESTING: -z
echo foo > example.txt echo foo > example.txt
echo bar > example2.txt echo bar > example2.txt
test -z "`since -z example.txt`" test -z "`since -z example.txt`" || ( cat .since && exit 2 )
test -z "`since -z example2.txt`" test -z "`since -z example2.txt`" || ( cat .since && exit 3 )
echo TESTING: default action echo TESTING: default action
echo bar >> example.txt echo bar >> example.txt
test "`since example.txt`" = "bar" test "`since example.txt`" = "bar" || ( cat .since && exit 4 )
echo TESTING: reset echo TESTING: reset
echo fnord > example.txt echo fnord > example.txt
test "`since example.txt 2>&1`" = "since: considering example.txt to be truncated, displaying from start test "`since example.txt 2>&1`" = "since: considering example.txt to be truncated, displaying from start
fnord" fnord" || ( cat .since && exit 5 )
echo TESTING: -z multiple files echo TESTING: -z multiple files
echo hurz >> example.txt echo hurz >> example.txt
echo bla >> example2.txt echo bla >> example2.txt
test "`since -z example.txt example2.txt`" = "==> example.txt [discarded] <== test "`since -z example.txt example2.txt`" = "==> example.txt [discarded] <==
==> example2.txt [discarded] <==" ==> example2.txt [discarded] <==" || ( cat .since && exit 6 )
echo TESTING: default action multiple files echo TESTING: default action multiple files
echo flarp >> example.txt echo flarp >> example.txt
...@@ -38,4 +38,4 @@ echo gnarz >> example2.txt ...@@ -38,4 +38,4 @@ echo gnarz >> example2.txt
test "`since example.txt example2.txt`" = "==> example.txt <== test "`since example.txt example2.txt`" = "==> example.txt <==
flarp flarp
==> example2.txt <== ==> example2.txt <==
gnarz" gnarz" || ( cat .since && exit 7 )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment