summaryrefslogtreecommitdiff
path: root/test/bin
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-12 15:50:58 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-12 15:50:58 +0000
commitb078b78ebdb3b636b4006e478fca0a5d5b629a7c (patch)
treec9e740e57b6bba51bd96a9791ef5e5b56e111e89 /test/bin
parent00e8b20d836580430660c5610085de36ea61e1cd (diff)
downloadscala-b078b78ebdb3b636b4006e478fca0a5d5b629a7c.tar.gz
scala-b078b78ebdb3b636b4006e478fca0a5d5b629a7c.tar.bz2
scala-b078b78ebdb3b636b4006e478fca0a5d5b629a7c.zip
- Added a test to avoid colors when run in emacs
Diffstat (limited to 'test/bin')
-rwxr-xr-xtest/bin/scala-test3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bin/scala-test b/test/bin/scala-test
index c825d4880b..13fa8a910a 100755
--- a/test/bin/scala-test
+++ b/test/bin/scala-test
@@ -420,6 +420,9 @@ main() {
abort "illegal non-numerical argument for option --errors";
fi;
+ if [ -z "$COLOR" -a -n "$EMACS" ]; then
+ COLOR="none";
+ fi;
color_initialization "${COLOR:-many}";
find_program SOCOS socos;
find_program SURUS surus;