GitHub user weiqingy reopened a pull request:
https://github.com/apache/spark/pull/15246
[MINOR][SQL] Use resource path for test_script.sh
## What changes were proposed in this pull request?
This PR modified the test case `test("script")` to use resource path for
`test_script.sh`. Make the test case portable (even in IntelliJ).
## How was this patch tested?
Passed the test case.
Before:
Run `test("script")` in IntelliJ:
```
Caused by: org.apache.spark.SparkException: Subprocess exited with status
127. Error: bash: src/test/resources/test_script.sh: No such file or directory
```
After:
Test passed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/weiqingy/spark hivetest
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15246.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #15246
----
commit d799eea4ca3e3ad0fc71fe49985e6bc51f197158
Author: Weiqing Yang <[email protected]>
Date: 2016-09-26T21:15:06Z
[MINOR][SQL] Use resource path for test_script.sh
commit 6129187f21771088510b6acf0217f8d66a316ea5
Author: Weiqing Yang <[email protected]>
Date: 2016-10-04T04:00:48Z
fix more test cases to use resource path'
commit cf161f7d7c6f59e316aae96416981a904c36496e
Author: Weiqing Yang <[email protected]>
Date: 2016-10-04T20:55:04Z
add utility methods in SparkFunSuite
commit 2ea3eeae4f8ec910e2558a482b6fab8275da77f9
Author: Weiqing Yang <[email protected]>
Date: 2016-10-04T23:24:33Z
revert changes in CliSuite and HiveThriftServer2Suites
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]