Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ufebl
mjtest
Commits
4a370c9f
Commit
4a370c9f
authored
Nov 02, 2016
by
Johannes Bechberger
Browse files
Fix swapping out and err
parent
f17b62b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
mjtest/test/syntax_tests.py
View file @
4a370c9f
...
...
@@ -17,7 +17,7 @@ class BasicSyntaxTest(TestCase):
return
self
.
_should_succeed
def
short_name
(
self
)
->
str
:
return
path
.
basename
(
self
.
file
)
[:
-
3
]
return
path
.
basename
(
self
.
file
)
def
run
(
self
)
->
BasicTestResult
:
out
,
err
,
rtcode
=
self
.
env
.
run_mj_command
(
self
.
MODE
,
self
.
file
)
...
...
mjtest/test/tests.py
View file @
4a370c9f
...
...
@@ -238,7 +238,7 @@ class TestResult:
class
BasicTestResult
(
TestResult
):
def
__init__
(
self
,
test_case
:
TestCase
,
error_code
:
int
,
error_
output
:
str
,
output
:
str
):
def
__init__
(
self
,
test_case
:
TestCase
,
error_code
:
int
,
output
:
str
,
error_
output
:
str
):
super
().
__init__
(
test_case
,
error_code
)
self
.
_contains_error_str
=
"error"
in
error_output
self
.
error_output
=
error_output
...
...
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