Project

General

Profile

Actions

action #44399

open

[easy][beginner] Fix assert_script_sudo and script_sudo being called as root

Added by dheidler about 6 years ago. Updated almost 3 years ago.

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

0%

Estimated time:

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

Further details

entrance level issue


Related issues 1 (0 open1 closed)

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

Actions
Actions

Also available in: Atom PDF