Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
0
Merge Requests
0
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
Léo-Paul Géneau
slapos
Commits
b82834bd
Commit
b82834bd
authored
Oct 29, 2021
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fluentd: Fix test setUpClass
cls.computer_partition_root_path is filled in by super.setUpClass.
parent
586ca76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
software/fluentd/test/test.py
software/fluentd/test/test.py
+5
-4
No files found.
software/fluentd/test/test.py
View file @
b82834bd
...
@@ -97,16 +97,17 @@ class WendelinTutorialTestCase(FluentdTestCase):
...
@@ -97,16 +97,17 @@ class WendelinTutorialTestCase(FluentdTestCase):
@
classmethod
@
classmethod
def
setUpClass
(
cls
):
def
setUpClass
(
cls
):
fluentd_dir
=
os
.
path
.
join
(
cls
.
computer_partition_root_path
,
'software_release'
,
'parts'
,
'fluentd'
)
cls
.
_fluentd_bin
=
os
.
path
.
join
(
fluentd_dir
,
'bin'
,
'fluentd'
)
cls
.
_gem_path
=
os
.
path
.
join
(
fluentd_dir
,
'lib'
,
'ruby'
,
'gems'
)
cls
.
_tmp_dir
=
tempfile
.
mkdtemp
()
cls
.
_tmp_dir
=
tempfile
.
mkdtemp
()
cls
.
_measurementList
=
cls
.
sensor_value_list
()
cls
.
_measurementList
=
cls
.
sensor_value_list
()
cls
.
_conf
=
cls
.
get_configuration
()
cls
.
_conf
=
cls
.
get_configuration
()
super
(
FluentdTestCase
,
cls
).
setUpClass
()
super
(
FluentdTestCase
,
cls
).
setUpClass
()
fluentd_dir
=
os
.
path
.
join
(
cls
.
computer_partition_root_path
,
'software_release'
,
'parts'
,
'fluentd'
)
cls
.
_fluentd_bin
=
os
.
path
.
join
(
fluentd_dir
,
'bin'
,
'fluentd'
)
cls
.
_gem_path
=
os
.
path
.
join
(
fluentd_dir
,
'lib'
,
'ruby'
,
'gems'
)
@
classmethod
@
classmethod
def
sensor_value_list
(
cls
):
def
sensor_value_list
(
cls
):
return
[
str
(
value
)
for
value
in
(
round
(
random
.
uniform
(
870
,
1084
),
2
),
return
[
str
(
value
)
for
value
in
(
round
(
random
.
uniform
(
870
,
1084
),
2
),
...
...
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