diff --git a/tests/test_integration_workflow/test.local.sh b/tests/test_integration_workflow/test.local.sh
index ac753e8d274908e9dc298d86b958b923417656c6..4a5da25c6e6495f207afeeefe943906d7fdda134 100755
--- a/tests/test_integration_workflow/test.local.sh
+++ b/tests/test_integration_workflow/test.local.sh
@@ -1,8 +1,7 @@
 #!/bin/bash
 
 # Tear down test environment
-#trap 'rm -rf logs/ results/ .snakemake/ && cd $user_dir' EXIT  # quoted command is exected after script exits, regardless of exit status
-trap 'cd $user_dir' EXIT  # quoted command is exected after script exits, regardless of exit status
+trap 'rm -rf logs/ results/ .snakemake/ && cd $user_dir' EXIT  # quoted command is exected after script exits, regardless of exit status
 
 # Set up test environment
 set -eo pipefail  # ensures that script exits at first command that exits with non-zero status