We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 01fd6cf + 4a861cb commit cd39e02Copy full SHA for cd39e02
python/subunit/__init__.py
@@ -907,12 +907,7 @@ def debug(self):
907
908
def _run(self, result):
909
protocol = TestProtocolServer(result)
910
- # Explicitly invoke Python to run the script instead of relying on
911
- # execute permissions, which may not be preserved during installation
912
- import shlex
913
-
914
- script_parts = shlex.split(self.script)
915
- process = subprocess.Popen([sys.executable] + script_parts, stdout=subprocess.PIPE)
+ process = subprocess.Popen(self.script, shell=True, stdout=subprocess.PIPE)
916
make_stream_binary(process.stdout)
917
output = process.communicate()[0]
918
protocol.readFrom(BytesIO(output))
0 commit comments