diff --git a/test/unit/unittest.sh b/test/unit/unittest.sh index 7cd0a98da9..b1a545086b 100755 --- a/test/unit/unittest.sh +++ b/test/unit/unittest.sh @@ -9,6 +9,8 @@ set -xe testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $(dirname $0)/../..) +cd "$rootdir" + # if ASAN is enabled, use it. If not use valgrind if installed but allow # the env variable to override the default shown below. if [ -z ${valgrind+x} ]; then @@ -148,7 +150,7 @@ echo "=====================" echo "All unit tests passed" echo "=====================" if [ "$cov_avail" = "yes" ]; then - echo "Note: coverage report is here: ./$UT_COVERAGE" + echo "Note: coverage report is here: $rootdir/$UT_COVERAGE" else echo "WARN: lcov not installed or SPDK built without coverage!" fi