minor: add comments about WESHER_E2E_TESTS envvar
[skip ci]
This commit is contained in:
parent
1c26b706f8
commit
89cab211bc
|
@ -6,6 +6,7 @@ mkdir -p /dev/net
|
||||||
mknod /dev/net/tun c 10 200
|
mknod /dev/net/tun c 10 200
|
||||||
|
|
||||||
wireguard-go wgoverlay
|
wireguard-go wgoverlay
|
||||||
|
# this disables kernel-mode interface creation; see wireguard.go:createWgInterface()
|
||||||
export WESHER_E2E_TESTS=1
|
export WESHER_E2E_TESTS=1
|
||||||
|
|
||||||
/app/wesher --log-level debug --cluster-key 'ILICZ3yBMCGAWNIq5Pn0bewBVimW3Q2yRVJ/Be+b1Uc=' "$@"
|
/app/wesher --log-level debug --cluster-key 'ILICZ3yBMCGAWNIq5Pn0bewBVimW3Q2yRVJ/Be+b1Uc=' "$@"
|
|
@ -137,6 +137,7 @@ func (wg *wgState) nodesToPeerConfigs(nodes []node) ([]wgtypes.PeerConfig, error
|
||||||
func (wg *wgState) createWgInterface() error {
|
func (wg *wgState) createWgInterface() error {
|
||||||
if _, err := wg.client.Device(wg.iface); err == nil {
|
if _, err := wg.client.Device(wg.iface); err == nil {
|
||||||
// device already exists, but we are running e2e tests, so we're using the user-mode implementation
|
// device already exists, but we are running e2e tests, so we're using the user-mode implementation
|
||||||
|
// see tests/entrypoint.sh
|
||||||
if _, e2e := os.LookupEnv("WESHER_E2E_TESTS"); e2e {
|
if _, e2e := os.LookupEnv("WESHER_E2E_TESTS"); e2e {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue