Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
juga
sbws
Commits
9f537092
Commit
9f537092
authored
6 years ago
by
juga
Browse files
Options
Downloads
Patches
Plain Diff
tests, v3bwfile: rename bwl_str to raw_bwl_str
parent
75a6650d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/unit/lib/test_v3bwfile.py
+4
-3
4 additions, 3 deletions
tests/unit/lib/test_v3bwfile.py
with
4 additions
and
3 deletions
tests/unit/lib/test_v3bwfile.py
+
4
−
3
View file @
9f537092
...
...
@@ -38,7 +38,8 @@ header_extra_ls = [timestamp_l, version_l,
software_l
,
software_version_l
,
TERMINATOR
]
header_extra_str
=
LINE_SEP
.
join
(
header_extra_ls
)
+
LINE_SEP
bwl_str
=
"
bw=56 bw_mean=61423 bw_median=55656
"
\
# Line produced without any scaling.
raw_bwl_str
=
"
bw=56 bw_mean=61423 bw_median=55656
"
\
"
desc_bw_avg=1000000000 desc_bw_obs_last=524288
"
\
"
desc_bw_obs_mean=524288 error_circ=0 error_misc=0 error_stream=1
"
\
"
master_key_ed25519=g+Shk00y9Md0hg1S6ptnuc/wWKbADBgdjT0Kg+TSF3s
"
\
...
...
@@ -46,7 +47,7 @@ bwl_str = "bw=56 bw_mean=61423 bw_median=55656 "\
"
node_id=$AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA rtt=456 success=1
"
\
"
time=2018-04-17T14:09:07
\n
"
v3bw_str
=
header_extra_str
+
bwl_str
v3bw_str
=
header_extra_str
+
raw_
bwl_str
def
test_v3bwheader_str
():
...
...
@@ -219,7 +220,7 @@ def test_v3bwline_from_results_file(datadir):
bwl
=
V3BWLine
.
from_data
(
d
,
fp
)
# bw store now B, not KB
bwl
.
bw
=
round
(
bwl
.
bw
/
1000
)
assert
bwl_str
==
str
(
bwl
)
assert
raw_
bwl_str
==
str
(
bwl
)
def
test_from_results_read
(
datadir
,
tmpdir
,
conf
,
args
):
...
...
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