diff options
author | Simon McVittie <smcv@debian.org> | 2016-03-05 23:57:46 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2016-03-05 23:58:09 +0000 |
commit | 988c290f4a1bafdac6dabc499efb8b7ffa94a251 (patch) | |
tree | 22b773f7a3d5d9faf22451c028d8b6678c1a2779 /test | |
parent | 506945f13c098f2b9abcccf681e64d6b924da3eb (diff) |
run-test: avoid "test: =: unary operator expected"
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'test')
-rwxr-xr-x | test/run-test.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/run-test.sh b/test/run-test.sh index 9eacd1a..ae370a4 100755 --- a/test/run-test.sh +++ b/test/run-test.sh @@ -68,10 +68,11 @@ cross_test_server_pid="$!" $PYTHON "$DBUS_TOP_SRCDIR"/test/wait-for-name.py org.freedesktop.DBus.Binding.TestServer +e=0 $PYTHON "$DBUS_TOP_SRCDIR"/test/cross-test-client.py > "$DBUS_TEST_TMPDIR"/cross-client.log || e=$? echo "test-client exit status: $e" -if test $e = 77; then +if test "$e" = 77; then echo "cross-test-client exited $e, marking as skipped" skipped=yes elif grep . "$DBUS_TEST_TMPDIR"/cross-client.log >/dev/null; then @@ -81,7 +82,7 @@ else failed=yes fi -if test $e = 77; then +if test "$e" = 77; then echo "test-client exited $e, marking as skipped" skipped=yes elif grep . "$DBUS_TEST_TMPDIR"/cross-server.log >/dev/null; then |