summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lava-test-shell/smoke-tests-net.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lava-test-shell/smoke-tests-net.yaml b/lava-test-shell/smoke-tests-net.yaml
index eccee98..1bab9b4 100644
--- a/lava-test-shell/smoke-tests-net.yaml
+++ b/lava-test-shell/smoke-tests-net.yaml
@@ -12,5 +12,5 @@ run:
steps:
- lava-test-case linux-posix-ip-addresses --shell ip addr
- lava-test-case linux-posix-routes --shell ip route
- - "[ \"$USE_NC\" ] || lava-test-case linux-posix-ping --shell 'ping -c 2 8.8.8.8 || lava-test-raise \"Network not able to ping; job exit\"'"
- - "[ \"$USE_NC\" ] && lava-test-case linux-posix-ping --shell 'nc -vz -w 5 www.linaro.org 443 || lava-test-raise \"Network not able to connect; job exit\"'"
+ - "[ \"$USE_NC\" -ne 0 ] || lava-test-case linux-posix-ping --shell 'ping -c 2 8.8.8.8 || lava-test-raise \"Network not able to ping; job exit\"'"
+ - "[ \"$USE_NC\" -ne 0 ] && lava-test-case linux-posix-ping --shell 'nc -vz -w 5 www.linaro.org 443 || lava-test-raise \"Network not able to connect; job exit\"'"