mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 00:30:09 +01:00
tests/client: rework error handling in "test-client.sh" script
The script runs with "set -e", as such `cmd && r=ok` seems wrong.
It worked apparently, but I don't understand why. Anyway, change
it.
Fixes: e643703418 ('tests/client: run "test-client.py" also for meson')
This commit is contained in:
parent
c2265dd8a9
commit
571fdaafac
1 changed files with 2 additions and 2 deletions
|
|
@ -56,8 +56,8 @@ export NM_TEST_CLIENT_BUILDDIR="$BUILDDIR"
|
|||
# afterwards. The only reason is that when you run with `make -j` that the
|
||||
# test output is grouped together.
|
||||
|
||||
r=""
|
||||
"$PYTHON" "$SRCDIR/src/tests/client/test-client.py" -v &> "$BUILDDIR/src/tests/client/test-client.log" && r=ok
|
||||
r="ok"
|
||||
"$PYTHON" "$SRCDIR/src/tests/client/test-client.py" -v &> "$BUILDDIR/src/tests/client/test-client.log" || r=fail
|
||||
|
||||
cat "$BUILDDIR/src/tests/client/test-client.log"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue