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 6 months ago
- Related to action #109891: [qe-core] Writing openQA tests with python added
Updated by szarate 6 months ago
- Related to coordination #127031: [saga][epic] openQA for SUSE customers added
Updated by okurz 6 months 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 6 months 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 ph03nix 6 months ago
- Related to deleted (action #109891: [qe-core] Writing openQA tests with python )
Updated by ph03nix 6 months ago
- Blocks action #109891: [qe-core] Writing openQA tests with python added
Updated by mgrifalconi 6 months ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Actions