summaryrefslogtreecommitdiffstats
path: root/tests/ts/build-sys
diff options
context:
space:
mode:
authorKarel Zak2012-02-28 14:37:45 +0100
committerKarel Zak2012-02-28 14:37:45 +0100
commit4210c47adc382815a0528add4342e5f2b3b3c101 (patch)
tree42001b8e435cdf0fed860c3b7728a88ca258d544 /tests/ts/build-sys
parentbuild-sys: enhance readability of the autotools files (diff)
downloadkernel-qcow2-util-linux-4210c47adc382815a0528add4342e5f2b3b3c101.tar.gz
kernel-qcow2-util-linux-4210c47adc382815a0528add4342e5f2b3b3c101.tar.xz
kernel-qcow2-util-linux-4210c47adc382815a0528add4342e5f2b3b3c101.zip
tests: make output and diff dirs usage more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/build-sys')
-rwxr-xr-xtests/ts/build-sys/config11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/ts/build-sys/config b/tests/ts/build-sys/config
index 7ede38ca8..e2c2b00f8 100755
--- a/tests/ts/build-sys/config
+++ b/tests/ts/build-sys/config
@@ -52,9 +52,18 @@ for conf in $config_gen_dir/config-gen.d/*.conf; do
esac
fi
done
+
+ # clean the tree, but exclude tests/{diff,output} dirs
+ #
+ [ -d tests/diff ] && mv tests/diff tests/diff.save
+ [ -d tests/output ] && mv tests/output tests/output.save
+
make -j clean &> /dev/null
- cd $olddir
+ [ -d tests/diff.save ] && mv tests/diff.save tests/diff
+ [ -d tests/output.save ] && mv tests/output.save tests/output
+
+ cd $olddir
ts_finalize_subtest
done