diff options
author | Karel Zak | 2012-02-28 14:37:45 +0100 |
---|---|---|
committer | Karel Zak | 2012-02-28 14:37:45 +0100 |
commit | 4210c47adc382815a0528add4342e5f2b3b3c101 (patch) | |
tree | 42001b8e435cdf0fed860c3b7728a88ca258d544 /tests/ts/build-sys | |
parent | build-sys: enhance readability of the autotools files (diff) | |
download | kernel-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-x | tests/ts/build-sys/config | 11 |
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 |