Bug 38850 - Ошибка при запуске /var/lib/control++/tests/run с параметрами bl, wl
Summary: Ошибка при запуске /var/lib/control++/tests/run с параметрами bl, wl
Status: CLOSED FIXED
Alias: None
Product: Branch p9
Classification: Distributions
Component: control++ (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: alexey
QA Contact: qa-p9@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-26 15:10 MSK by Vera Blagoveschenskaya
Modified: 2020-09-15 13:47 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vera Blagoveschenskaya 2020-08-26 15:10:02 MSK
Тестовый стенд: любой (смотрела на alt kworkstation).

control++-checkinstall-0.20.1-alt0.M90P.1.x86_64

1) Установить пакет
2) Посмотреть информацию об использовании утилиты
# /var/lib/control++/tests/run -h
usage: run [-h] -t {bl,wl,all}

optional arguments:
  -h, --help            show this help message and exit
  -t {bl,wl,all}, --targets {bl,wl,all}
                        Targets of the testing (bl | wl | all)
3) Запустить с параметром bl или wl

Результат: 
# /var/lib/control++/tests/run -t wl
Running '' [IN PROGRESS]
Traceback (most recent call last):
  File "/var/lib/control++/tests/run", line 71, in <module>
    res = subprocess.run(command)
  File "/usr/lib64/python3.7/subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib64/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.7/subprocess.py", line 1406, in _execute_child
    executable = args[0]
IndexError: list index out of range

С параметром all запуск без ошибок

# /var/lib/control++/tests/run -t all
Running '/var/lib/control++/tests/bw-list-modesetting --indent --list black' [IN PROGRESS]
        /run/control++ is already exist
        Running 'control++ permissions --plain test_blacklist' [IN PROGRESS]
Setting permissions 'test_blacklist' mode:
Restoring initial state:
Restoring initial state for the 'permissions' unit [DONE]
Mode reset OK
Setting 'test_blacklist' mode for the 'permissions' unit [DONE]
Mode set OK
Current permissions mode is 'test_blacklist'
        Running 'control++ permissions --plain test_blacklist' [V]
        Checking /run/control++/d2 [V]
        - Exec perm bit is on
        Checking /run/control++/d1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir [V]
        - Exec perm bit is on
        Checking /run/control++/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/d2/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/d1/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d3 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d2 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/f2 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/f1 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/d2/f2 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d2/f1 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/d1/d1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1/f2 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1/f1 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/d1/d1/f2 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1/d1/f1 [V]
        - Exec perm bit is off
Running '/var/lib/control++/tests/bw-list-modesetting --indent --list black' [V]
Running '/var/lib/control++/tests/bw-list-modesetting --indent --list white' [IN PROGRESS]
        /run/control++ is already exist
        Running 'control++ permissions --plain test_whitelist' [IN PROGRESS]
Setting permissions 'test_whitelist' mode:
Restoring initial state:
Restoring initial state for the 'permissions' unit [DONE]
Mode reset OK
Setting 'test_whitelist' mode for the 'permissions' unit [DONE]
Mode set OK
Current permissions mode is 'test_whitelist'
        Running 'control++ permissions --plain test_whitelist' [V]
        Checking /run/control++/d2 [V]
        - Exec perm bit is on
        Checking /run/control++/d1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir [V]
        - Exec perm bit is on
        Checking /run/control++/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/d2/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/d1/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d3 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d2 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/f2 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d2/f2 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/d2/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1/d1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1/f2 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/d1/f1 [V]
        - Exec perm bit is on
        Checking /run/control++/base_dir/d1/d1/f2 [V]
        - Exec perm bit is off
        Checking /run/control++/base_dir/d1/d1/f1 [V]
        - Exec perm bit is on
Running '/var/lib/control++/tests/bw-list-modesetting --indent --list white' [V]
2 of 2 tests have succeeded.
Comment 1 alexey 2020-09-15 13:47:47 MSK
Исправлено в версии 0.20.2.