summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2019-01-04 16:31:16 +0200
committerEryu Guan <guaneryu@gmail.com>2019-01-06 22:40:40 +0800
commitf3a1213c2494a73a051100db99c83e1ccb050b8e (patch)
treec9461d02d52ac11ee1d85ec7b2c08637c80e442d /check
parente18876187ce76fd69118728206b89c7007752ea7 (diff)
Revert "common/config: create $RESULT_BASE before dumping kmemleak leaks"
This commit tried to fix the brokennes of the kmemleak support but it inadvertently broke the creation of the RESULT_BASE directory which lead to problems creating check.time file. Turns out kmemleak support in xfstests has more problems and it needs to be majorly refactor and this commit doesn't really solve the problem. For the time being just revert to at least allow older configuration files, which have explicitly set RESULT_BASE to work. This reverts commit 7fc034868d5dce9aaf3517c9c2197221b9a772e4. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Diffstat (limited to 'check')
-rwxr-xr-xcheck7
1 files changed, 7 insertions, 0 deletions
diff --git a/check b/check
index e4d76737..77a06b00 100755
--- a/check
+++ b/check
@@ -538,6 +538,13 @@ for section in $HOST_OPTIONS_SECTIONS; do
fi
fi
+ mkdir -p $RESULT_BASE
+ if [ ! -d $RESULT_BASE ]; then
+ echo "failed to create results directory $RESULT_BASE"
+ status=1
+ exit
+ fi
+
if $OPTIONS_HAVE_SECTIONS; then
echo "SECTION -- $section"
fi