summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-13 13:10:53 -0800
committerRuss Cox <rsc@golang.org>2009-11-13 13:10:53 -0800
commitfb2b99ba8d5b4507980fb2cd97af2d2677bd01bb (patch)
tree8d7187cd93aafa05a85ba4174c8efbcddfdd4aef
parentd04a510fa310c6d5fa8b6a3dec07e88f0b998dd6 (diff)
downloadgolang-fb2b99ba8d5b4507980fb2cd97af2d2677bd01bb.tar.gz
test/run: use bash, not sh.
use bash builtin time instead of assuming /usr/bin/time exists. R=r http://codereview.appspot.com/152124
-rwxr-xr-xtest/run4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run b/test/run
index 1f921e7a1..00cfede66 100755
--- 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