Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uwdkn
mjtest
Commits
793f4012
Commit
793f4012
authored
Dec 31, 2016
by
Johannes Bechberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression bug
parent
324ff7b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mjtest/environment.py
mjtest/environment.py
+1
-1
mjtest/test/tests.py
mjtest/test/tests.py
+3
-3
No files found.
mjtest/environment.py
View file @
793f4012
...
@@ -168,7 +168,7 @@ class Environment:
...
@@ -168,7 +168,7 @@ class Environment:
}[
mode
]
}[
mode
]
cmd
=
[
self
.
mj_run_cmd
]
cmd
=
[
self
.
mj_run_cmd
]
if
mode_flag
:
if
mode_flag
:
cmd
.
append
(
mode
)
cmd
.
append
(
mode
_flag
)
cmd
.
extend
(
list
(
args
))
cmd
.
extend
(
list
(
args
))
return
execute
(
cmd
,
timeout
=
timeout
or
self
.
timeout
)
return
execute
(
cmd
,
timeout
=
timeout
or
self
.
timeout
)
...
...
mjtest/test/tests.py
View file @
793f4012
...
@@ -339,7 +339,7 @@ class ExtensibleTestResult(TestResult):
...
@@ -339,7 +339,7 @@ class ExtensibleTestResult(TestResult):
Checks for "error" string
Checks for "error" string
"""
"""
self
.
_contains_error_str
=
self
.
_contains_error_str
and
error_output
is
not
None
and
"error"
in
error_output
self
.
_contains_error_str
=
self
.
_contains_error_str
and
error_output
is
not
None
and
"error"
in
error_output
self
.
messages
.
append
(
TestResultMessage
(
title
,
c
))
self
.
messages
.
append
(
TestResultMessage
(
title
,
self
.
_contains_error_str
))
def
add_long_text
(
self
,
title
:
str
,
content
:
str
,
with_line_numbers
:
bool
=
True
):
def
add_long_text
(
self
,
title
:
str
,
content
:
str
,
with_line_numbers
:
bool
=
True
):
self
.
messages
.
append
(
TestResultMessage
(
title
,
content
,
multiline
=
True
,
with_line_numbers
=
with_line_numbers
))
self
.
messages
.
append
(
TestResultMessage
(
title
,
content
,
multiline
=
True
,
with_line_numbers
=
with_line_numbers
))
...
@@ -544,8 +544,8 @@ class DiffTest(TestCase):
...
@@ -544,8 +544,8 @@ class DiffTest(TestCase):
OUTPUT_FILE_ENDING
=
".out"
OUTPUT_FILE_ENDING
=
".out"
MODE
=
TestMode
.
ast
MODE
=
TestMode
.
ast
def
__init__
(
self
,
env
:
Environment
,
type
:
str
,
file
:
str
,
preprocessed_file
:
str
):
def
__init__
(
self
,
env
:
Environment
,
type
:
str
,
file
:
str
,
preprocessed_file
:
str
,
log_file_mode
):
super
().
__init__
(
env
,
type
,
file
,
preprocessed_file
)
super
().
__init__
(
env
,
type
,
file
,
preprocessed_file
,
log_file_mode
)
self
.
_should_succeed
=
not
file
.
endswith
(
".invalid.mj"
)
self
.
_should_succeed
=
not
file
.
endswith
(
".invalid.mj"
)
self
.
_expected_output_file
=
file
+
self
.
OUTPUT_FILE_ENDING
self
.
_expected_output_file
=
file
+
self
.
OUTPUT_FILE_ENDING
self
.
_has_expected_output_file
=
exists
(
self
.
_expected_output_file
)
self
.
_has_expected_output_file
=
exists
(
self
.
_expected_output_file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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