Skip to content

tests/beakerlib: Add new test which covers build-in functions.#591

Open
RHEmployee wants to merge 1 commit intoredhat-performance:masterfrom
RHEmployee:add-test-built-in-functions
Open

tests/beakerlib: Add new test which covers build-in functions.#591
RHEmployee wants to merge 1 commit intoredhat-performance:masterfrom
RHEmployee:add-test-built-in-functions

Conversation

@RHEmployee
Copy link
Copy Markdown
Contributor

No description provided.

@@ -0,0 +1,16 @@
import base
from tuned.utils.commands import commands

Check notice

Code scanning / CodeQL

Unused import

Import of 'commands' is not used.
@@ -0,0 +1,16 @@
from . import base
from tuned.utils.commands import commands

Check notice

Code scanning / CodeQL

Unused import

Import of 'commands' is not used.
super(self.__class__, self).__init__("testfunc", 2)

def execute(self, args):
f = open(str(args[0]),'w')

Check warning

Code scanning / CodeQL

File is not always closed

File may not be closed if an exception is raised.
super(self.__class__, self).__init__("testfunc", 2)

def execute(self, args):
f = open(str(args[0]),'w')

Check warning

Code scanning / CodeQL

File is not always closed

File may not be closed if an exception is raised.
@yarda
Copy link
Copy Markdown
Contributor

yarda commented Feb 8, 2024

@RHEmployee could you fix the CodeQL found issues and could you fix the test?

@RHEmployee
Copy link
Copy Markdown
Contributor Author

Rhel7 or centos7 is not supported by this test which is reflected in provided metadata.

One issue is preset: wrong detection of centos.

@RHEmployee RHEmployee force-pushed the add-test-built-in-functions branch from e5ddeb1 to a3199e6 Compare February 8, 2024 14:47
@RHEmployee RHEmployee force-pushed the add-test-built-in-functions branch from a3199e6 to eb5681e Compare February 8, 2024 15:13
@yarda
Copy link
Copy Markdown
Contributor

yarda commented May 21, 2024

/test

@yarda
Copy link
Copy Markdown
Contributor

yarda commented May 21, 2024

/packit test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants