The test case common.funcs.t_dtrace_contrib.tst_basename_d generates a

verifying script which needs being run to complete the test.

While here, add missing shebang.

Reviewed by:	gnn, markj, ngie
Differential Revision:	https://reviews.freebsd.org/D11716
This commit is contained in:
lwhsu 2017-07-25 13:18:28 +00:00
parent cc5b04df01
commit dbd5eba188

View File

@ -1,3 +1,5 @@
#!/bin/sh
# $FreeBSD$
usage()
@ -84,6 +86,12 @@ runtest()
;;
esac
if [ $retval -eq 0 ] && \
head -n 1 $STDOUT | grep -q -E '^#!/.*ksh$'; then
ksh $STDOUT
retval=$?
fi
return $retval
}