1 |
commit: 1f03317929c7ee02eea0c3fdb3975b3323408200 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 17 12:45:47 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 17 12:45:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=1f033179 |
7 |
|
8 |
tests: improve qlist error output |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
|
12 |
tests/qlist/dotest | 8 ++++---- |
13 |
1 file changed, 4 insertions(+), 4 deletions(-) |
14 |
|
15 |
diff --git a/tests/qlist/dotest b/tests/qlist/dotest |
16 |
index 2ba7033..0bb031b 100755 |
17 |
--- a/tests/qlist/dotest |
18 |
+++ b/tests/qlist/dotest |
19 |
@@ -13,8 +13,8 @@ test() { |
20 |
local num=$1 exp=$2 ret=0 |
21 |
shift 2 |
22 |
eval "$@" > list || ret=$? |
23 |
- if ! diff -u list ${as}/list${num}.good ; then |
24 |
- tfail "output does not match" |
25 |
+ if ! diff -u ${as}/list${num}.good list ; then |
26 |
+ tfail "output does not match for: $*" |
27 |
fi |
28 |
if [[ ${exp} -ne ${ret} ]] ; then |
29 |
tfail "exit code (${ret}) does not match expected (${exp})" |
30 |
@@ -50,7 +50,7 @@ test 08 0 "qlist -C cpio" |
31 |
test 09 0 "qlist -C mtools -d" |
32 |
|
33 |
# ver test |
34 |
-test 10 0 "qlist -Iv =mtools-4*" |
35 |
+test 10 0 "qlist -ICv =mtools-4*" |
36 |
|
37 |
# repo test |
38 |
test 11 0 "qlist -ICR" |
39 |
@@ -65,7 +65,7 @@ test 13 0 "qlist -Ce --showdebug app-arch/cpio:0::gentoo" |
40 |
test 14 0 "qlist -ICSS" |
41 |
|
42 |
# no matches |
43 |
-test 15 1 "qlist -Iv lajsdflkjasdflkjasdfljasdf" |
44 |
+test 15 1 "qlist -ICv lajsdflkjasdflkjasdfljasdf" |
45 |
|
46 |
# match test w/out sub-SLOT |
47 |
test 16 0 "qlist -ICSS virtual/sub-2:1" |