diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-11-17 13:45:47 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-11-17 13:45:47 +0100 |
commit | 1f03317929c7ee02eea0c3fdb3975b3323408200 (patch) | |
tree | 21c9993c196c41cff7a7e2793080a97228e1e7c6 | |
parent | qxpak: fix list mode (forgotten newline) (diff) | |
download | portage-utils-1f033179.tar.gz portage-utils-1f033179.tar.bz2 portage-utils-1f033179.zip |
tests: improve qlist error output
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-x | tests/qlist/dotest | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/qlist/dotest b/tests/qlist/dotest index 2ba7033a..0bb031b9 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" |