diff --git a/backport_tests b/backport_tests index be18be2..01d7555 100755 --- a/backport_tests +++ b/backport_tests @@ -31,7 +31,7 @@ log_header "Tests exit code" # https://github.com/hazelcast/backport/issues/10 # Find location of a temp directory, where script is _unlikely_ to exist TMPDIR=$(mktemp) -TMPDIR="$(dirname "${SCRIPT_DIR}")" +TMPDIR="$(dirname "${TMPDIR}")" (cd "${TMPDIR}"; test_get_exit_code 2) assert_eq 0 "${TESTS_RESULT}" "All tests should pass"