]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Run DTrace test scripts with "tst" set to the test script file name.
authormarkj <markj@FreeBSD.org>
Wed, 7 Dec 2016 23:36:15 +0000 (23:36 +0000)
committermarkj <markj@FreeBSD.org>
Wed, 7 Dec 2016 23:36:15 +0000 (23:36 +0000)
MFC after: 1 week
Sponsored by: Dell EMC Isilon

cddl/usr.sbin/dtrace/tests/tools/dtest.sh

index e60837b4ad08f2f47f3ed6159aa05da1f3ce75a9..b5ad87440291902b4f1b46270b225159ca0cf511 100755 (executable)
@@ -70,7 +70,7 @@ runtest()
     err.*.ksh|tst.*.ksh)
         expr "$TFILE" : 'err.*' >/dev/null && exstatus=1
 
-        ksh "$TFILE" /usr/sbin/dtrace >$STDOUT 2>$STDERR
+        tst=$TFILE ksh "$TFILE" /usr/sbin/dtrace >$STDOUT 2>$STDERR
         status=$?
 
         if [ $status -ne $exstatus ]; then