scoutfs-tests: create results dir before logging

We can't use cmd() to create the results dir because it tries to
redirect output to the results dir, which fails, so mkdir isn't run and
we don't create the results dir.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2019-09-10 09:57:47 -07:00
committed by Zach Brown
parent a471c7716e
commit 4326a95b9b
+3 -1
View File
@@ -214,7 +214,9 @@ test -z "$tests" && \
die "no tests found by including $T_INCLUDE and excluding $T_EXCLUDE"
# create results dir
test -e "$T_RESULTS" || cmd mkdir -p "$T_RESULTS"
test -e "$T_RESULTS" || mkdir -p "$T_RESULTS"
test -d "$T_RESULTS" || \
die "$T_RESULTS dir is not a directory"
# checkout and build kernel module
if [ -n "$T_KMOD_REPO" ]; then