Project

General

Profile

Actions

action #19880

closed

Fix power_action in console_reboot and Improve power_action

Added by okurz almost 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
michalnowak
Category:
Bugs in existing tests
Target version:
-
Start date:
2017-06-08
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Sorry, still not done here. E.g. see https://openqa.opensuse.org/tests/423083#step/console_reboot/10

  • The test module is called "console_reboot" but the power action now assumes we want to call the reboot from X11 which is not the case here -> gh#os-autoinst/os-autoinst-distri-opensuse#3095
  • Also the comment within lib/utils power_action is wrong because it describes still that we go to the root console -> gh#os-autoinst/os-autoinst-distri-opensuse#3095
  • The parameter "dry-run" is really misleading because normally this is used to simulate some action for testing. This is what a "dry run" is. Not a necessary console reset - which is an action with effect in case the reboot has happened anyway

Related issues 1 (0 open1 closed)

Copied from openQA Tests - action #19658: [sled][sles][functional][qam] test fails in power_action('poweroff')Resolvedmichalnowak2017-06-08

Actions
Actions #1

Updated by okurz almost 7 years ago

  • Copied from action #19658: [sled][sles][functional][qam] test fails in power_action('poweroff') added
Actions #2

Updated by okurz almost 7 years ago

IMHO the function "power_action" is trying to be too intelligent and has no clear goal. I opt for more clear lower level functions with clear names and responsibilities.

Actions #3

Updated by okurz almost 7 years ago

  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee changed from okurz to michalnowak
  • Priority changed from High to Normal
Actions #4

Updated by michalnowak almost 7 years ago

  • Status changed from In Progress to Feedback
Actions #5

Updated by michalnowak almost 7 years ago

  • Status changed from Feedback to Resolved

PR#3101 merged.

Actions #6

Updated by okurz almost 7 years ago

better, thank you!

Actions

Also available in: Atom PDF