Project

General

Profile

Actions

action #62606

open

GENERAL_HW_POWEROFF_CMD broken with scripts if started from openQA

Added by ggardet_arm almost 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2020-01-23
Due date:
% Done:

0%

Estimated time:

Description

While using the generalhw backend, I noticed that GENERAL_HW_POWEROFF_CMD is broken with bash scripts, if started from openQA only.
If I start isotovideo manually (out of openQA), with my own user, or geekotest or _openqa-worker users, with the same vars.json file, it does work properly.
The error message is:

[2020-01-23T11:51:34.079 UTC] [debug] run_cmd: /var/lib/openqa/share/tests/opensuse/data/generalhw_scripts/power_off_tenma.sh
[2020-01-23T11:51:34.128 UTC] [debug] Backend process died, backend errors are reported below in the following lines:
exec failed: Permission denied at /usr/lib/os-autoinst/backend/generalhw.pm line 67.
at /usr/lib/os-autoinst/backend/generalhw.pm line 67.
at /usr/lib/os-autoinst/backend/generalhw.pm line 67.

The related code is at: https://github.com/os-autoinst/os-autoinst/blob/master/backend/generalhw.pm#L65

If I use an executable (tested /usr/bin/ls), there is no problem.

I guess openQA context is different, but I have no clue how to fix this properly.

Actions

Also available in: Atom PDF