Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
nexedi
osie
Commits
d04d12ae
Commit
d04d12ae
authored
Dec 28, 2021
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report in proper format.
parent
9f06a8ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
tests/test_runtime_coupler_increment.py
tests/test_runtime_coupler_increment.py
+11
-4
No files found.
tests/test_runtime_coupler_increment.py
View file @
d04d12ae
...
...
@@ -8,7 +8,6 @@ import argparse
import
configparser
def
main
():
# handle CLI arguments
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'--iterations'
,
\
...
...
@@ -34,10 +33,13 @@ def main():
OPC_UA_ADDRESS
=
args
.
opc_ua_server
OPC_UA_IDENTIFIER
=
args
.
opc_ua_node_identifier
# connect to a session at OPC-UA server
client
=
Client
(
OPC_UA_ADDRESS
)
# for now this is the only test thus we start it without a wrapper
test_count
=
1
test_failures
=
0
expected_failures
=
0
try
:
client
.
connect
()
...
...
@@ -54,10 +56,15 @@ def main():
i2c0_relay0_after
=
var
.
get_value
()
print
(
"i2c0_relay0 (after) = "
,
i2c0_relay0_after
)
# for the wait timeout runtime should have increased the value
assert
i2c0_relay0_after
>
i2c0_relay0_before
if
(
i2c0_relay0_after
<=
i2c0_relay0_before
):
# counter should have been increased, mark failure
test_falures
+=
1
finally
:
client
.
disconnect
()
# print out to sdtout results
print
(
"Integration Tests %d Tests, %d Failures, %d Expected failures"
\
%
(
test_count
,
test_failures
,
expected_failures
))
if
__name__
==
"__main__"
:
main
()
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