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-04

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 #1

Updated by szarate about 1 year ago

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

Updated by szarate about 1 year ago

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

Updated by szarate about 1 year ago

  • Priority changed from Normal to High
Actions #4

Updated by szarate about 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 about 1 year ago

Actions #6

Updated by okurz about 1 year ago

@szarate as this issue came up today some points:

Actions #7

Updated by szarate about 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:

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

Actions #8

Updated by mgrifalconi about 1 year ago

  • Assignee set to mgrifalconi
Actions #9

Updated by ph03nix about 1 year ago

  • Status changed from Workable to In Progress
Actions #10

Updated by szarate about 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 about 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 about 1 year ago

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

Updated by ph03nix about 1 year ago

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

Updated by mgrifalconi about 1 year ago

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

Updated by szarate 6 months ago

Actions

Also available in: Atom PDF