Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
e327b7a7
Commit
e327b7a7
authored
7 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Corrected check PASSED with get_test_result().
parent
f787f12a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/apertif/commissioning/tests/batch_test.py
+4
-2
4 additions, 2 deletions
applications/apertif/commissioning/tests/batch_test.py
with
4 additions
and
2 deletions
applications/apertif/commissioning/tests/batch_test.py
+
4
−
2
View file @
e327b7a7
...
@@ -171,10 +171,12 @@ def get_test_result(machines):
...
@@ -171,10 +171,12 @@ def get_test_result(machines):
tc
.
set_result
(
'
FAILED
'
)
tc
.
set_result
(
'
FAILED
'
)
elif
cm
.
find_string_in_file
(
logFilename
,
'
Test result: PASSED
'
)
>=
0
:
elif
cm
.
find_string_in_file
(
logFilename
,
'
Test result: PASSED
'
)
>=
0
:
tc
.
append_log
(
3
,
'
%s test went OK
'
%
mi
)
tc
.
append_log
(
3
,
'
%s test went OK
'
%
mi
)
elif
cm
.
find_string_in_file
(
logFilename
,
'
Utility result: PASSED
'
)
>=
0
:
tc
.
append_log
(
3
,
'
%s test went OK
'
%
mi
)
else
:
else
:
# This check will detect if the command did not complete on the machine, e.g. due to a Python error in the script
# This check will detect if the command did not complete on the machine, e.g. due to a Python error in the script
tc
.
append_log
(
2
,
'
%s test result unknown
'
%
mi
)
tc
.
append_log
(
2
,
'
%s test result unknown
'
%
mi
)
tc
.
set_result
(
'
FAILED
'
)
#
tc.set_result('FAILED')
###############################################################################
###############################################################################
...
@@ -214,7 +216,7 @@ for lcu in LCUS:
...
@@ -214,7 +216,7 @@ for lcu in LCUS:
tc
.
append_log_file
(
3
,
log_filename
)
tc
.
append_log_file
(
3
,
log_filename
)
# Update machine test result in global tc object
# Update machine test result in global tc object
get_test_result
(
MACHINE
S
)
get_test_result
(
LCU
S
)
################################################################################
################################################################################
## Run commands that simulatenously dishes and central in foreground
## Run commands that simulatenously dishes and central in foreground
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment