diff options
author | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2014-10-28 12:58:25 -0700 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2014-10-28 12:58:25 -0700 |
commit | 6c1b981c3fad671bff4795f061bd40e111956621 (patch) | |
tree | 0b6db3f19b3172bf80c87508433e79ab371c49ca /python/run-tests | |
parent | 2f254dacf4b7ab9c59c7cef59fd364ca682162ae (diff) | |
download | spark-6c1b981c3fad671bff4795f061bd40e111956621.tar.gz spark-6c1b981c3fad671bff4795f061bd40e111956621.tar.bz2 spark-6c1b981c3fad671bff4795f061bd40e111956621.zip |
[SPARK-4058] [PySpark] Log file name is hard coded even though there is a variable '$LOG_FILE '
In a script 'python/run-tests', log file name is represented by a variable 'LOG_FILE' and it is used in run-tests. But, there are some hard-coded log file name in the script.
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Closes #2905 from sarutak/SPARK-4058 and squashes the following commits:
7710490 [Kousuke Saruta] Fixed python/run-tests not to use hard-coded log file name
Diffstat (limited to 'python/run-tests')
-rwxr-xr-x | python/run-tests | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/run-tests b/python/run-tests index 80acd002ab..a4f0cac059 100755 --- a/python/run-tests +++ b/python/run-tests @@ -41,7 +41,7 @@ function run_test() { # Fail and exit on the first test failure. if [[ $FAILED != 0 ]]; then - cat unit-tests.log | grep -v "^[0-9][0-9]*" # filter all lines starting with a number. + cat $LOG_FILE | grep -v "^[0-9][0-9]*" # filter all lines starting with a number. echo -en "\033[31m" # Red echo "Had test failures; see logs." echo -en "\033[0m" # No color @@ -87,7 +87,7 @@ function run_streaming_tests() { run_test "pyspark/streaming/tests.py" } -echo "Running PySpark tests. Output is in python/unit-tests.log." +echo "Running PySpark tests. Output is in python/$LOG_FILE." export PYSPARK_PYTHON="python" |