summaryrefslogtreecommitdiff
path: root/yaksh/bash_stdio_evaluator.py
diff options
context:
space:
mode:
authormaheshgudi2016-07-28 18:24:18 +0530
committermaheshgudi2016-07-28 18:24:18 +0530
commit1b71abc9437d721a41f017db406f312755f5a4c4 (patch)
treee4fac39cf722608c1f8bf0d208b8a3e8c39f2d9f /yaksh/bash_stdio_evaluator.py
parent9411ab221e007a6c3e2901ce34f38f2267288b6e (diff)
downloadonline_test-1b71abc9437d721a41f017db406f312755f5a4c4.tar.gz
online_test-1b71abc9437d721a41f017db406f312755f5a4c4.tar.bz2
online_test-1b71abc9437d721a41f017db406f312755f5a4c4.zip
added expected input in traceback for python and made minor changes in bash_stio_evaluator and stdio_evaluator
Diffstat (limited to 'yaksh/bash_stdio_evaluator.py')
-rw-r--r--yaksh/bash_stdio_evaluator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/bash_stdio_evaluator.py b/yaksh/bash_stdio_evaluator.py
index 25f35a1..5431e5d 100644
--- a/yaksh/bash_stdio_evaluator.py
+++ b/yaksh/bash_stdio_evaluator.py
@@ -30,7 +30,7 @@ class BashStdioEvaluator(CodeEvaluator):
def check_code(self, user_answer, expected_input, expected_output):
success = False
expected_input = str(expected_input).replace('\r', '')
- proc = subprocess.Popen(["bash ./Test.sh"],
+ proc = subprocess.Popen("bash ./Test.sh",
shell=True,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,