1
0
mirror of https://github.com/golang/go synced 2024-11-24 08:50:14 -07:00

cmd/dist: make fortran test conditional on bash existence

Fixes #14929.

Change-Id: I0391acf9f5f65389f73637533306a7c4240320b8
Reviewed-on: https://go-review.googlesource.com/21295
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
kortschak 2016-03-30 19:37:18 +10:30 committed by Brad Fitzpatrick
parent 897dcdb5ec
commit 6b97dbf848

View File

@ -445,7 +445,7 @@ func (t *tester) registerTests() {
if fortran == "" {
fortran, _ = exec.LookPath("gfortran")
}
if fortran != "" && t.goos != "dragonfly" { // see golang.org/issue/14544
if t.hasBash() && fortran != "" && t.goos != "dragonfly" { // see golang.org/issue/14544
t.tests = append(t.tests, distTest{
name: "cgo_fortran",
heading: "../misc/cgo/fortran",