From owner-svn-src-head@freebsd.org Tue Jul 25 13:18:29 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9BBBEC7C2FF; Tue, 25 Jul 2017 13:18:29 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 689E076F19; Tue, 25 Jul 2017 13:18:29 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v6PDISvI093013; Tue, 25 Jul 2017 13:18:28 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v6PDISfa093012; Tue, 25 Jul 2017 13:18:28 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <201707251318.v6PDISfa093012@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Tue, 25 Jul 2017 13:18:28 +0000 (UTC) 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 X-SVN-Group: head X-SVN-Commit-Author: lwhsu X-SVN-Commit-Paths: head/cddl/usr.sbin/dtrace/tests/tools X-SVN-Commit-Revision: 321472 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2017 13:18:29 -0000 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 }