diff options
author | Chase Qi <chase.qi@linaro.org> | 2024-01-09 18:02:26 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2024-01-09 18:04:48 +0800 |
commit | 62a6cba7e226a939733a5de3947aa73dd7f272c9 (patch) | |
tree | ffc57873dba0daeca566811f9bb1169451e84387 | |
parent | 7273242aa3cbdfe8018354412522ff2905639c2c (diff) |
There is no real boolean in Shell. Comparing the `USE_NC` parameter to
the default value is more reliable.
Change-Id: Ieab00e5837f698f03056efa097ea7358e4f5ba86
Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rw-r--r-- | lava-test-shell/smoke-tests-net.yaml | 4 |
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\"'" |