diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-11-16 14:23:22 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-11-16 14:23:22 +0100 |
commit | 66a46dbc688d6d48b03dbbc92c4eeece1d5b5547 (patch) | |
tree | dc4bafb1d60a4f385ded0c11208e1afd5fdfa2ac /share/dtf/tpl | |
parent | d80e394f60d6ed1df14391f20a79305ab00f6662 (diff) | |
download | dtf-66a46dbc688d6d48b03dbbc92c4eeece1d5b5547.tar.gz dtf-66a46dbc688d6d48b03dbbc92c4eeece1d5b5547.tar.xz dtf-66a46dbc688d6d48b03dbbc92c4eeece1d5b5547.zip |
lib: don't require bash
* bin/dtf-gen: Use /bin/sh shebang.
* share/dtf/lib/default: Likewise.
(__dtf_internal_fail): New internal method.
(__dtf_run_testcase): Play with mkfifo.
* share/dtf/tpl/run.tpl: Use /bin/sh shebang. Remove $outputdir
before script start.
Diffstat (limited to 'share/dtf/tpl')
-rw-r--r-- | share/dtf/tpl/run.tpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/share/dtf/tpl/run.tpl b/share/dtf/tpl/run.tpl index 663e302..0495675 100644 --- a/share/dtf/tpl/run.tpl +++ b/share/dtf/tpl/run.tpl @@ -1,8 +1,14 @@ -#! /bin/bash -x +#! /bin/sh # vi: ft=sh test -z "$outputdir" && outputdir="$PWD/DTF_RESULT" +$__DTF_TOP_TEST && { + exec 3>&1 4>&2 + rm -rf "$outputdir" +} + + . "$top_srcdir/library" __dtf_rc=0 |