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 7fc034868d.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Nikolay Borisov
2019-01-04 16:31:16 +02:00
committed by Eryu Guan
parent e18876187c
commit f3a1213c24
2 changed files with 7 additions and 5 deletions
+7
View File
@@ -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
-5
View File
@@ -665,11 +665,6 @@ get_next_config() {
# set default RESULT_BASE
if [ -z "$RESULT_BASE" ]; then
export RESULT_BASE="$here/results/"
mkdir -p ${RESULT_BASE}
if [ ! -d ${RESULT_BASE} ]; then
echo "failed to create results directory $RESULT_BASE"
exit 1
fi
fi
if [ "$FSTYP" == "tmpfs" ]; then