diff options
Diffstat (limited to 'tests/userspace/wrap-unwrap.sh')
-rwxr-xr-x | tests/userspace/wrap-unwrap.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/userspace/wrap-unwrap.sh b/tests/userspace/wrap-unwrap.sh index f678cac..332834e 100755 --- a/tests/userspace/wrap-unwrap.sh +++ b/tests/userspace/wrap-unwrap.sh @@ -32,7 +32,12 @@ test_cleanup() } trap test_cleanup 0 1 2 3 15 -test_dir=$(etl_create_test_dir) || exit +test_dir_parent="$TMPDIR" +if [ -z "$test_dir_parent"]; then + test_dir_parent="/tmp" +fi + +test_dir=$(etl_create_test_dir "$test_dir_parent") || exit path="${test_dir}/foo" ${test_script_dir}/wrap-unwrap/test ${path} |