]> Cypherpunks repositories - gostls13.git/commitdiff
test/run: use bash, not sh.
authorRuss Cox <rsc@golang.org>
Fri, 13 Nov 2009 21:10:53 +0000 (13:10 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 13 Nov 2009 21:10:53 +0000 (13:10 -0800)
use bash builtin time instead of
assuming /usr/bin/time exists.

R=r
https://golang.org/cl/152124

test/run

index 1f921e7a1b7cf21e77161c73a20d3371cd8a8c72..00cfede6628ab4913189dd0794f1b28f7d377db7 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # Copyright 2009 The Go Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
@@ -57,7 +57,7 @@ do
                export F=$(basename $i .go)
                export D=$dir
                sed '/^\/\//!q' $i | sed 's@//@@; $d' |sed 's|./\$A.out|$E &|' >$RUNFILE
-               if ! /usr/bin/time -p sh -c "sh $RUNFILE >$TMP1FILE 2>&1" 2>$TMP2FILE
+               if ! time -p bash -c "bash $RUNFILE >$TMP1FILE 2>&1" 2>$TMP2FILE
                then
                        echo
                        echo "===========" $i