summaryrefslogtreecommitdiff
path: root/yaksh/java_code_evaluator.py
diff options
context:
space:
mode:
authoradityacp2016-12-23 15:03:37 +0530
committeradityacp2016-12-23 15:03:37 +0530
commitd442941819dc7f8b65a2965fbcefe000fea1cde2 (patch)
tree624d8ba12cf83cf57f685bc8cee158be14aee783 /yaksh/java_code_evaluator.py
parent14b628f49a7d0aa58c22c021c62a5d0a748ae881 (diff)
parent48366e84b98157ac32b22b2aa19b1c1cde68afd4 (diff)
downloadonline_test-d442941819dc7f8b65a2965fbcefe000fea1cde2.tar.gz
online_test-d442941819dc7f8b65a2965fbcefe000fea1cde2.tar.bz2
online_test-d442941819dc7f8b65a2965fbcefe000fea1cde2.zip
Fix conflict
Diffstat (limited to 'yaksh/java_code_evaluator.py')
-rw-r--r--yaksh/java_code_evaluator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/java_code_evaluator.py b/yaksh/java_code_evaluator.py
index 25876b5..df6abf5 100644
--- a/yaksh/java_code_evaluator.py
+++ b/yaksh/java_code_evaluator.py
@@ -18,6 +18,7 @@ class JavaCodeEvaluator(BaseEvaluator):
self.files = []
self.compiled_user_answer = None
self.compiled_test_code = None
+ self.submit_code_path = ""
self.user_output_path = ""
self.ref_output_path = ""
@@ -145,7 +146,7 @@ class JavaCodeEvaluator(BaseEvaluator):
stderr=subprocess.PIPE)
proc, stdout, stderr = ret
if proc.returncode == 0:
- success, err = True, "Correct answer"
+ success, err = True, None
mark_fraction = float(seelf.weight) if self.partial_grading else 0.0
else:
err = stdout + "\n" + stderr