summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2016-07-29 11:21:41 -0700
committerRuss Allbery <eagle@eyrie.org>2016-07-29 11:21:41 -0700
commit24ff135eb20db15ff10f9bc1551c06181e9a2bc4 (patch)
treea621f14532a000c5243b5ffacbda3e96f2b65e0f /tests
parentad2be23b4eabc8d91c52827112913f463c2d71a4 (diff)
Clear environment variables in the server/shell-misc test
Diffstat (limited to 'tests')
-rwxr-xr-xtests/server/shell-misc-t4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/server/shell-misc-t b/tests/server/shell-misc-t
index 5ce9a59..bbcb045 100755
--- a/tests/server/shell-misc-t
+++ b/tests/server/shell-misc-t
@@ -12,6 +12,10 @@
# Declare plan.
plan 15
+# Clean any leaked environment variables.
+unset REMCTL_USER
+unset SSH_CONNECTION
+
# Find the remctl-shell binary.
shell="${C_TAP_BUILD}/../server/remctl-shell"