[gtk/wip/baedert/for-master: 1/3] settings test: Print expected and seen values
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 1/3] settings test: Print expected and seen values
- Date: Thu, 16 Dec 2021 10:06:37 +0000 (UTC)
commit 399070d99820ff2d2e7b484339f0bd8d9e39d1a3
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 13 15:26:00 2021 +0100
settings test: Print expected and seen values
That test breaks locally (and in CI it seems?), so at least print the
values we see.
testsuite/tools/settings.in | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/testsuite/tools/settings.in b/testsuite/tools/settings.in
index ea7ae6a67b..3c5ce69016 100755
--- a/testsuite/tools/settings.in
+++ b/testsuite/tools/settings.in
@@ -10,8 +10,11 @@ echo "1..1"
name=gtk-query-settings
result=$TEST_RESULT_DIR/$name.out
$GTK_QUERY_SETTINGS 2>/dev/null >$result
-if [ $(wc -l $result | cut -f1 -d' ') -eq 50 ]; then
- echo "ok 1 $name"
+EXPECTED=50
+SEEN=$(wc -l $result | cut -f1 -d' ')
+
+if [ $SEEN -eq $EXPECTED ]; then
+ echo "ok 1 $name."
else
- echo "not ok 1 $name"
+ echo "not ok 1 $name. Expected: $EXPECTED. Seen: $SEEN"
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]