Project

General

Profile

action #44399

Fix assert_script_sudo and script_sudo being called as root

Added by dheidler almost 3 years ago. Updated about 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2018-11-27
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Motivation

Found working on: #43703

When calling script_sudo or assert_script_sudo as root (eg to avoid code duplication) it fails as openQA expects a password prompt that doesn't appear when the shell is already a root-shell:

To show this issue I just added this two lines to the top of a test module:

select_console 'root-console';
assert_script_sudo 'whoami';

http://artemis.suse.de/tests/1007#step/rsync/10

Expected result: openQA should gracefully handle this.

Acceptance criteria


Related issues

Related to openQA Tests - action #43703: [functional][u] openssh: test needs to use key-based login for rootResolved2018-11-13

History

#1 Updated by SLindoMansilla almost 3 years ago

  • Subject changed from [tools] Fix assert_script_sudo and script_sudo being called as root to [tools][functional][u] Fix assert_script_sudo and script_sudo being called as root
  • Priority changed from Normal to Low

#2 Updated by okurz almost 3 years ago

  • Subject changed from [tools][functional][u] Fix assert_script_sudo and script_sudo being called as root to Fix assert_script_sudo and script_sudo being called as root

I see this as neither task for [tools] nor [functional][u]

#3 Updated by dheidler almost 3 years ago

  • Description updated (diff)

#4 Updated by SLindoMansilla almost 3 years ago

  • Description updated (diff)

#5 Updated by SLindoMansilla almost 3 years ago

  • Related to action #43703: [functional][u] openssh: test needs to use key-based login for root added

#6 Updated by okurz over 2 years ago

  • Category changed from 136 to Feature requests

#7 Updated by okurz about 1 year ago

  • Target version set to future

Also available in: Atom PDF