Actions
action #126590
closed[qe-core] loading tests in Python is broken when using YAML
Status:
Resolved
Priority:
High
Assignee:
Category:
Bugs in existing tests
Target version:
Start date:
2023-03-24
Due date:
% Done:
100%
Estimated time:
Difficulty:
Sprint:
QE-Core: April Sprint 23 (Apr 05 - May 03)
Description
TL;DR, we need to know whether it's a PM or a Python test:
What we are missing here is first to check whether the file is perl or python, if the file exists then load it
sub loadtest {
my ($test, %args) = @_;
croak "extensions are not allowed here '$test'" if $test =~ /\.pm$/;
autotest::loadtest("tests/$test.pm", %args);
}
Updated by szarate over 1 year ago
- Related to action #109891: [qe-core] Writing openQA tests with python added
Updated by szarate over 1 year ago
- Description updated (diff)
- Status changed from New to Workable
- Assignee deleted (
szarate)
Updated by szarate over 1 year ago
- Sprint set to QE-Core: March Sprint (Mar 08 - Apr 05)
- Tags changed from platform-team, qaaas to platform-team, qaaas, qe-core-march-sprint
Updated by szarate over 1 year ago
- Related to coordination #127031: [saga][epic] openQA for SUSE customers added
Updated by okurz over 1 year ago
@szarate as this issue came up today some points:
- This is only about os-autoinst-distri-opensuse right?
- Why not track this ticket in a public tracker?
- https://github.com/os-autoinst/os-autoinst/blob/master/autotest.pm#L96 supports reading python modules just fine so I guess you can just simplify the call in os-autoinst-distri-opensuse
Updated by szarate over 1 year ago
- Project changed from 46 to openQA Tests
- Category changed from Bugs in existing tests to Bugs in existing tests
okurz wrote:
@szarate as this issue came up today some points:
- This is only about os-autoinst-distri-opensuse right?
- Why not track this ticket in a public tracker?
- https://github.com/os-autoinst/os-autoinst/blob/master/autotest.pm#L96 supports reading python modules just fine so I guess you can just simplify the call in os-autoinst-distri-opensuse
Yes, this is explicitly about YAML schedules and how the test distri loads modules.
Updated by szarate over 1 year ago
- Sprint changed from QE-Core: March Sprint (Mar 08 - Apr 05) to QE-Core: April Sprint 23 (Apr 05 - May 03)
Updated by szarate over 1 year ago
- Tags changed from platform-team, qaaas, qe-core-march-sprint to platform-team, qaaas, qe-core-march-sprint, qe-core-april-sprint
Updated by ph03nix over 1 year ago
- Related to deleted (action #109891: [qe-core] Writing openQA tests with python )
Updated by ph03nix over 1 year ago
- Blocks action #109891: [qe-core] Writing openQA tests with python added
Updated by mgrifalconi over 1 year ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Updated by szarate about 1 year ago
- Related to coordination #90758: [epic] python bindings for openQA added
Actions