Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7401#discussion_r34708072
--- Diff: dev/sparktestsupport/shellutils.py ---
@@ -48,7 +48,10 @@ def run_cmd(cmd):
if not isinstance(cmd, list):
cmd = cmd.split()
try:
- subprocess.check_call(cmd)
+ if return_output:
+ return subprocess.check_output(cmd)
--- End diff --
I think that there was a workaround for this in
fdcad6ef48a9e790776c316124bd6478ab6bd5c8; maybe we can take the workaround from
that patch and move it into the `sparktestsupport` module so that we can use it
from both scripts?
---
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]