diff options
author | Olivier Cochard <olivier@FreeBSD.org> | 2023-02-06 23:06:48 +0000 |
---|---|---|
committer | Olivier Cochard <olivier@FreeBSD.org> | 2023-02-06 23:06:48 +0000 |
commit | d22c5c42e8ad1ad07a206e0e8d06c53326c12fd4 (patch) | |
tree | 80bf494d1b71655a76f34ccfbce61f22c8557056 /tests | |
parent | b92f8e5c0dccd52ea194cabe835b7af0b5e91f09 (diff) | |
download | src-d22c5c42e8ad1ad07a206e0e8d06c53326c12fd4.tar.gz src-d22c5c42e8ad1ad07a206e0e8d06c53326c12fd4.zip |
Skip if_wg regression tests if module doesn't exist
Approved by: jhb
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D38406
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sys/net/if_wg.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sys/net/if_wg.sh b/tests/sys/net/if_wg.sh index 6946fb72524a..1612e05ef168 100644 --- a/tests/sys/net/if_wg.sh +++ b/tests/sys/net/if_wg.sh @@ -42,7 +42,7 @@ wg_basic_body() local epair pri1 pri2 pub1 pub2 wg1 wg2 local endpoint1 endpoint2 tunnel1 tunnel2 - kldload -n if_wg + kldload -n if_wg || atf_skip "This test requires if_wg and could not load it" pri1=$(wg genkey) pri2=$(wg genkey) @@ -111,7 +111,7 @@ wg_key_peerdev_shared_body() local epair pri1 pub1 wg1 local endpoint1 tunnel1 - kldload -n if_wg + kldload -n if_wg || atf_skip "This test requires if_wg and could not load it" pri1=$(wg genkey) @@ -152,7 +152,7 @@ wg_key_peerdev_makeshared_body() local epair pri1 pub1 pri2 wg1 wg2 local endpoint1 tunnel1 - kldload -n if_wg + kldload -n if_wg || atf_skip "This test requires if_wg and could not load it" pri1=$(wg genkey) pri2=$(wg genkey) |