diff --git a/testsuite/expect/test13.1 b/testsuite/expect/test13.1
index f36fdfb026c8921d433a50697765612df8b8fa30..caf4a542e5e236c0683a8218ca40dfd5e1fc65b1 100755
--- a/testsuite/expect/test13.1
+++ b/testsuite/expect/test13.1
@@ -55,6 +55,7 @@ proc run_tasks { } {
 # Report the slurm configuration
 #
 set matches     0
+log_user 0
 spawn $scontrol show config
 expect {
 	-re "switch/elan" {
@@ -69,6 +70,7 @@ expect {
 		wait
 	}
 }
+log_user 1
 if {$matches != 1} {
 	send_user "\nWARNING: not running elan switch, this test is not applicable\n"
 	exit 0