diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-08-30 11:29:45 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-09-07 19:23:28 +0200 |
commit | 859093dae7dcadaff2e15a3885a1824b0d5f5913 (patch) | |
tree | 30cc00ed3a906ef741268e6585177dbb1d2b62e6 /test/integration/framework | |
parent | 9622b2111095c3fc705ec0615d27fe403e18c3b8 (diff) |
support regular expressions in 'apt search'
apt-cache search supported this since ever and in the code for apt was a
fixme indicating this should be added here as well, so here we go.
Diffstat (limited to 'test/integration/framework')
-rw-r--r-- | test/integration/framework | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/integration/framework b/test/integration/framework index 3bbf440c8..fde74f55d 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -1019,7 +1019,13 @@ testfileequal() { testempty() { msgtest "Test for no output of" "$*" - test -z "$($* 2>&1)" && msgpass || msgfail + local COMPAREFILE="${TMPWORKINGDIRECTORY}/rootdir/tmp/testempty.comparefile" + if $* >$COMPAREFILE 2>&1 && test ! -s $COMPAREFILE; then + msgpass + else + cat $COMPAREFILE + msgfail + fi } testequal() { |