Spaces:
Building
Building
Update tests.py
Browse files
tests.py
CHANGED
@@ -143,7 +143,7 @@ session = FuturesSession()
|
|
143 |
def run(cmd, timeout_sec):
|
144 |
global stdout
|
145 |
global stderr
|
146 |
-
proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE,cwd="/app/code_interpreter/")
|
147 |
timer = Timer(timeout_sec, proc.kill)
|
148 |
try:
|
149 |
timer.start()
|
|
|
143 |
def run(cmd, timeout_sec):
|
144 |
global stdout
|
145 |
global stderr
|
146 |
+
proc = Popen(shlex.split(cmd), stdout=PIPE, stderr=PIPE,cwd="/app/code_interpreter/", shell=True)
|
147 |
timer = Timer(timeout_sec, proc.kill)
|
148 |
try:
|
149 |
timer.start()
|