From 66a46dbc688d6d48b03dbbc92c4eeece1d5b5547 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 16 Nov 2015 14:23:22 +0100 Subject: 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. --- share/dtf/tpl/run.tpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'share/dtf/tpl') 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 -- cgit