mirror of
https://github.com/versity/scoutfs.git
synced 2026-09-19 22:44:19 +00:00
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:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user