Project

General

Profile

Actions

action #13156

closed

os-autoinst: Add support to easily switch VERSION during a test run

Added by okurz almost 8 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
-
Start date:
2016-08-11
Due date:
% Done:

0%

Estimated time:

Description

observation

for example in https://openqa.suse.de/tests/510956 zypper lifecycle is called which does not exist as we rolled back to a pre-SP2 state: https://openqa.suse.de/tests/510956#step/zypper_lifecycle/7

problem

VERSION=12-SP2 but when scheduling tests or trying to match needles this does not make sense.

Also see https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/1684 for a possible approach updating "VERSION" during the test run.

Three different scopes have to be kept in mind

  • needle registering (and unregistering)
  • test module scheduling
  • test module execution

For example, updating VERSION in a test module is executed after all modules are scheduled so it needs to be set in main.pm, too. As needle tags already got registered/unregistered, they need to be re-registered after every version change.

suggestion

Also see #9580#note-24

further details

The original title was 'how do we handle tests in "rollback_migration" which shouldn't start because VERSION is 12-SP2 but after rollback it's not anymore?'


Related issues 3 (0 open3 closed)

Related to openQA Tests - action #25504: Support for changing test variables including needles during test run (was: utils::sle_version_at_least needs refinement)Resolvedxlai2017-09-22

Actions
Has duplicate openQA Tests - action #13210: OpenQA is testing SP1 instead of SP2Closedmkravec2016-08-16

Actions
Blocked by openQA Tests - action #9580: Boot to snapshot after upgrade and then rollbackResolvedokurz2015-11-17

Actions
Actions

Also available in: Atom PDF