Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
uwdkn
mjtest
Commits
341fb062
Commit
341fb062
authored
Jan 23, 2017
by
Johannes Bechberger
Browse files
Fix #72
parent
d8ecfb73
Changes
1
Hide whitespace changes
Inline
Side-by-side
mjtest/test/exec_tests.py
View file @
341fb062
...
...
@@ -162,7 +162,6 @@ class JavaExecTest(BasicSyntaxTest):
raise
out
=
out
.
decode
()
if
self
.
type
==
self
.
MODE
and
self
.
env
.
mode
==
self
.
MODE
:
test_result
.
add_long_text
(
"Output"
,
out
)
if
exp_out
.
strip
()
!=
out
.
strip
():
test_result
.
incorrect_msg
=
"incorrect output"
test_result
.
has_succeeded
=
False
...
...
@@ -173,6 +172,8 @@ class JavaExecTest(BasicSyntaxTest):
test_result
.
add_file
(
"Source file"
,
self
.
preprocessed_file
)
if
self
.
_input_file
:
test_result
.
add_file
(
"Input file"
,
self
.
file
)
else
:
test_result
.
add_long_text
(
"Output"
,
out
)
os
.
chdir
(
cwd
)
return
test_result
return
BasicTestResult
(
self
,
rtcode
,
out
,
err
.
decode
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment