]> Cypherpunks repositories - gostls13.git/commitdiff
make test.sh work again
authorRobert Griesemer <gri@golang.org>
Tue, 1 Dec 2009 21:08:36 +0000 (13:08 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Dec 2009 21:08:36 +0000 (13:08 -0800)
R=rsc
https://golang.org/cl/164059

src/cmd/gofmt/test.sh

index 8912923f7e44d6e0320db4e8b754d14a3abc852f..e6e7cea68c322efe6142280372b305bc28c6f160 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/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.
@@ -129,15 +129,16 @@ runtest() {
 
 
 runtests() {
-       if [ $# == 0 ]; then
+       if [ "$@" = "" ]; then
                runtest apply
                # verify the pretty-printed files can be compiled with $GC again
                # do it in local directory only because of the prerequisites required
                #echo "Testing validity"
-               cleanup
-               applydot valid
+               # Disabled for now due to dependency problems
+               # cleanup
+               # applydot valid
        else
-               for F in "$*"; do
+               for F in "$@"; do
                        runtest apply1 "$F"
                done
        fi