Project

General

Profile

Actions

action #126590

closed

[qe-core] loading tests in Python is broken when using YAML

Added by szarate about 1 year ago. Updated about 1 year ago.

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

https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/e1214f966566deac2b7910ab3733ad6debb9a989/lib/main_common.pm#L139

sub loadtest {
    my ($test, %args) = @_;
    croak "extensions are not allowed here '$test'" if $test =~ /\.pm$/;
    autotest::loadtest("tests/$test.pm", %args);
}

Related issues 3 (1 open2 closed)

Related to openQA Project - coordination #127031: [saga][epic] openQA for SUSE customersBlockedokurz2020-11-042024-05-10

Actions
Related to openQA Project - coordination #90758: [epic] python bindings for openQAResolvedokurz2021-04-07

Actions
Blocks openQA Tests - action #109891: [qe-core] Writing openQA tests with python Resolvedmgrifalconi

Actions
Actions

Also available in: Atom PDF