summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2018-05-09 11:18:15 -0700
committerBen Pfaff <blp@ovn.org>2018-05-09 13:03:25 -0700
commit66842c003c035c1d19d976276040c4c0f175b832 (patch)
tree7b3325f7026f7767e4022e9afdca25bc04f0d14f /tests
parent1beb60afd25a64f1779903b22b37ed3d9956d47c (diff)
downloadopenvswitch-66842c003c035c1d19d976276040c4c0f175b832.tar.gz
tests: Avoid OVN environment variables leaking into tests.
If $OVN_NB_DB or $OVN_SB_DB happened to be set in the environment in which "make check" was invoked, then their values would leak into the tests' environment and interfere with the tests. This commit avoids that problem. OVS has a number of environment variables too, such as OVS_RUNDIR, but the tests already set those to custom values. Reported-by: Han Zhou <zhouhan@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Han Zhou <hzhou8@ebay.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/atlocal.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 6af420c47..0cc183e33 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -195,3 +195,7 @@ unset HTTP_PROXY
unset HTTPS_PROXY
unset FTP_PROXY
unset NO_PROXY
+
+# Avoid OVN environment variables leaking in from external environment.
+unset OVN_NB_DB
+unset OVN_SB_DB