diff options
author | Rémi Duraffort <remi.duraffort@linaro.org> | 2020-09-10 16:28:00 +0200 |
---|---|---|
committer | Rémi Duraffort <remi.duraffort@linaro.org> | 2020-09-11 13:12:15 +0200 |
commit | b79f2809e243d66743b25b3fecc8df3449db1a16 (patch) | |
tree | 5b3916e9787f738bf158034693492e8397f07654 | |
parent | 56b018e283dfa5df580e27fce780a365fc1ede21 (diff) |
smoke-tests-net: allow to use nc instead of ping
By default, the test will still use ping.
In order to use nc, the job definition should inclue:
params:
USE_NC: 1
See:
* nc: https://staging.validation.linaro.org/scheduler/job/278408
* ping: https://staging.validation.linaro.org/scheduler/job/278409
Change-Id: I4c0663c8cd89056c32f686d6aa14f9de988c0940
-rw-r--r-- | lava-test-shell/smoke-tests-net.yaml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lava-test-shell/smoke-tests-net.yaml b/lava-test-shell/smoke-tests-net.yaml index 80a5680..eccee98 100644 --- a/lava-test-shell/smoke-tests-net.yaml +++ b/lava-test-shell/smoke-tests-net.yaml @@ -5,8 +5,12 @@ metadata: maintainer: - lava-lab-team@linaro.org +params: + USE_NC: 0 + run: steps: - lava-test-case linux-posix-ip-addresses --shell ip addr - lava-test-case linux-posix-routes --shell ip route - - 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 '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\"'" |