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:
Li-Wen Hsu 2017-07-25 13:18:28 +00:00
parent f6040f9e8e
commit 288ebd813a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321472

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
}