Project

General

Profile

Actions

action #126590

closed

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

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

Status:
Resolved
Priority:
High
Assignee:
Category:
Bugs in existing tests
Target version:
QA (public, currently private due to #173521) - QE-Core: Ready
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 (public) - coordination #127031: [saga][epic] openQA for SUSE customersBlockedokurz2020-11-04

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

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

Actions
Actions #1

Updated by szarate over 1 year ago

  • Related to action #109891: [qe-core] Writing openQA tests with python added
Actions #2

Updated by szarate over 1 year ago

  • Description updated (diff)
  • Status changed from New to Workable
  • Assignee deleted (szarate)
Actions #3

Updated by szarate over 1 year ago

  • Priority changed from Normal to High
Actions #4

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
Actions #5

Updated by szarate over 1 year ago

Actions #6

Updated by okurz over 1 year ago

@szarate as this issue came up today some points:

Actions #7

Updated by szarate over 1 year ago

  • Project changed from 46 to openQA Tests (public)
  • Category changed from Bugs in existing tests to Bugs in existing tests

okurz wrote:

@szarate as this issue came up today some points:

Yes, this is explicitly about YAML schedules and how the test distri loads modules.

Actions #8

Updated by mgrifalconi over 1 year ago

  • Assignee set to mgrifalconi
Actions #9

Updated by ph03nix over 1 year ago

  • Status changed from Workable to In Progress
Actions #10

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)
Actions #11

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
Actions #12

Updated by ph03nix over 1 year ago

  • Related to deleted (action #109891: [qe-core] Writing openQA tests with python )
Actions #13

Updated by ph03nix over 1 year ago

  • Blocks action #109891: [qe-core] Writing openQA tests with python added
Actions #14

Updated by mgrifalconi over 1 year ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by szarate about 1 year ago

Actions

Also available in: Atom PDF