Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2017 13:18:28 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321472 - head/cddl/usr.sbin/dtrace/tests/tools
Message-ID:  <201707251318.v6PDISfa093012@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu (ports committer)
Date: Tue Jul 25 13:18:28 2017
New Revision: 321472
URL: https://svnweb.freebsd.org/changeset/base/321472

Log:
  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

Modified:
  head/cddl/usr.sbin/dtrace/tests/tools/dtest.sh

Modified: head/cddl/usr.sbin/dtrace/tests/tools/dtest.sh
==============================================================================
--- head/cddl/usr.sbin/dtrace/tests/tools/dtest.sh	Tue Jul 25 13:17:06 2017	(r321471)
+++ head/cddl/usr.sbin/dtrace/tests/tools/dtest.sh	Tue Jul 25 13:18:28 2017	(r321472)
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 # $FreeBSD$
 
 usage()
@@ -83,6 +85,12 @@ runtest()
         retval=1
         ;;
     esac
+
+    if [ $retval -eq 0 ] && \
+        head -n 1 $STDOUT | grep -q -E '^#!/.*ksh$'; then
+        ksh $STDOUT
+        retval=$?
+    fi
 
     return $retval
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707251318.v6PDISfa093012>