diff options
author | Karel Zak | 2017-02-16 14:14:54 +0100 |
---|---|---|
committer | Karel Zak | 2017-02-16 14:14:54 +0100 |
commit | 74fe554a412dd55e9814d1072bc3d36f627d2b77 (patch) | |
tree | 5482b1298dee78cbf94a960927f817c9b68b0343 /tests/functions.sh | |
parent | build-sys: add non-widechar.conf (diff) | |
download | kernel-qcow2-util-linux-74fe554a412dd55e9814d1072bc3d36f627d2b77.tar.gz kernel-qcow2-util-linux-74fe554a412dd55e9814d1072bc3d36f627d2b77.tar.xz kernel-qcow2-util-linux-74fe554a412dd55e9814d1072bc3d36f627d2b77.zip |
tests: add --show-diff
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r-- | tests/functions.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh index 34d966a6e..b93522c02 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -273,6 +273,7 @@ function ts_init_env { ts_init_core_env TS_VERBOSE=$(ts_has_option "verbose" "$*") + TS_SHOWDIFF=$(ts_has_option "show-diff" "$*") TS_PARALLEL=$(ts_has_option "parallel" "$*") TS_KNOWN_FAIL=$(ts_has_option "known-fail" "$*") TS_SKIP_LOOPDEVS=$(ts_has_option "skip-loopdevs" "$*") @@ -399,6 +400,13 @@ function ts_gen_diff { if [ $? -ne 0 ] || [ -s $TS_DIFF ]; then res=1 + if [ "$TS_SHOWDIFF" == "yes" ]; then + echo + echo "diff-{{{" + cat $TS_DIFF + echo "}}}-diff" + echo + fi else rm -f $TS_DIFF; fi |