diff options
Diffstat (limited to 'src/run.bash')
| -rwxr-xr-x | src/run.bash | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/run.bash b/src/run.bash index 83ef65bf0b..e5f2c384bb 100755 --- a/src/run.bash +++ b/src/run.bash @@ -176,9 +176,12 @@ unset GOMAXPROCS time go run run.go || exit 1 ) || exit $? -echo -echo '# Checking API compatibility.' -go tool api -c $GOROOT/api/go1.txt,$GOROOT/api/go1.1.txt -next $GOROOT/api/next.txt -except $GOROOT/api/except.txt +if [ -d "$GOROOT/src/cmd/api" ] +then + echo + echo '# Checking API compatibility.' + go tool api -c $GOROOT/api/go1.txt,$GOROOT/api/go1.1.txt -next $GOROOT/api/next.txt -except $GOROOT/api/except.txt +fi echo echo ALL TESTS PASSED |
