commit:     1f03317929c7ee02eea0c3fdb3975b3323408200
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 12:45:47 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 12:45:47 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=1f033179

tests: improve qlist error output

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 tests/qlist/dotest | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/qlist/dotest b/tests/qlist/dotest
index 2ba7033..0bb031b 100755
--- a/tests/qlist/dotest
+++ b/tests/qlist/dotest
@@ -13,8 +13,8 @@ test() {
        local num=$1 exp=$2 ret=0
        shift 2
        eval "$@" > list || ret=$?
-       if ! diff -u list ${as}/list${num}.good ; then
-               tfail "output does not match"
+       if ! diff -u ${as}/list${num}.good list ; then
+               tfail "output does not match for: $*"
        fi
        if [[ ${exp} -ne ${ret} ]] ; then
                tfail "exit code (${ret}) does not match expected (${exp})"
@@ -50,7 +50,7 @@ test 08 0 "qlist -C cpio"
 test 09 0 "qlist -C mtools -d"
 
 # ver test
-test 10 0 "qlist -Iv =mtools-4*"
+test 10 0 "qlist -ICv =mtools-4*"
 
 # repo test
 test 11 0 "qlist -ICR"
@@ -65,7 +65,7 @@ test 13 0 "qlist -Ce --showdebug app-arch/cpio:0::gentoo"
 test 14 0 "qlist -ICSS"
 
 # no matches
-test 15 1 "qlist -Iv lajsdflkjasdflkjasdfljasdf"
+test 15 1 "qlist -ICv lajsdflkjasdflkjasdfljasdf"
 
 # match test w/out sub-SLOT
 test 16 0 "qlist -ICSS virtual/sub-2:1"

Reply via email to