Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
cm-projects
RIOT
Commits
991a514f
Unverified
Commit
991a514f
authored
7 years ago
by
Alexandre Abadie
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8245 from aabadie/pr/tests/python_E502
tests: fix python style E502 issue
parents
01a82c87
ec5a9a5f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/lwip/tests/01-run.py
+2
-2
2 additions, 2 deletions
tests/lwip/tests/01-run.py
tests/posix_time/tests/01-run.py
+1
-1
1 addition, 1 deletion
tests/posix_time/tests/01-run.py
tests/xtimer_usleep/tests/01-run.py
+1
-1
1 addition, 1 deletion
tests/xtimer_usleep/tests/01-run.py
with
4 additions
and
4 deletions
tests/lwip/tests/01-run.py
+
2
−
2
View file @
991a514f
...
@@ -308,7 +308,7 @@ def test_triple_send(board_group, application, env=None):
...
@@ -308,7 +308,7 @@ def test_triple_send(board_group, application, env=None):
receiver
.
expect
(
u
"
00000000 DE AD BE EF
"
)
receiver
.
expect
(
u
"
00000000 DE AD BE EF
"
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
TestStrategy
().
execute
([
BoardGroup
((
Board
(
"
native
"
,
"
tap0
"
),
\
TestStrategy
().
execute
([
BoardGroup
((
Board
(
"
native
"
,
"
tap0
"
),
Board
(
"
native
"
,
"
tap1
"
)))],
\
Board
(
"
native
"
,
"
tap1
"
)))],
[
test_ipv6_send
,
test_udpv6_send
,
test_tcpv6_send
,
[
test_ipv6_send
,
test_udpv6_send
,
test_tcpv6_send
,
test_triple_send
])
test_triple_send
])
This diff is collapsed.
Click to expand it.
tests/posix_time/tests/01-run.py
+
1
−
1
View file @
991a514f
...
@@ -41,7 +41,7 @@ def testfunc(child):
...
@@ -41,7 +41,7 @@ def testfunc(child):
lower_bound
=
exp
-
(
exp
*
EXTERNAL_JITTER
)
lower_bound
=
exp
-
(
exp
*
EXTERNAL_JITTER
)
upper_bound
=
exp
+
(
exp
*
EXTERNAL_JITTER
)
upper_bound
=
exp
+
(
exp
*
EXTERNAL_JITTER
)
if
not
(
lower_bound
<
testtime
<
upper_bound
):
if
not
(
lower_bound
<
testtime
<
upper_bound
):
raise
InvalidTimeout
(
"
Host timer measured %d us (client measured %d us)
"
%
\
raise
InvalidTimeout
(
"
Host timer measured %d us (client measured %d us)
"
%
(
testtime
,
exp
))
(
testtime
,
exp
))
except
InvalidTimeout
as
e
:
except
InvalidTimeout
as
e
:
print
(
e
)
print
(
e
)
...
...
This diff is collapsed.
Click to expand it.
tests/xtimer_usleep/tests/01-run.py
+
1
−
1
View file @
991a514f
...
@@ -48,7 +48,7 @@ def testfunc(child):
...
@@ -48,7 +48,7 @@ def testfunc(child):
lower_bound
=
exp
-
(
exp
*
EXTERNAL_JITTER
)
lower_bound
=
exp
-
(
exp
*
EXTERNAL_JITTER
)
upper_bound
=
exp
+
(
exp
*
EXTERNAL_JITTER
)
upper_bound
=
exp
+
(
exp
*
EXTERNAL_JITTER
)
if
not
(
lower_bound
<
testtime
<
upper_bound
):
if
not
(
lower_bound
<
testtime
<
upper_bound
):
raise
InvalidTimeout
(
"
Host timer measured %d us (client measured %d us)
"
%
\
raise
InvalidTimeout
(
"
Host timer measured %d us (client measured %d us)
"
%
(
testtime
,
exp
))
(
testtime
,
exp
))
except
InvalidTimeout
as
e
:
except
InvalidTimeout
as
e
:
print
(
e
)
print
(
e
)
...
...
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