Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmt test import got "list index out of range" when restraint metadata includes empty attributes #3186

Open
smyle10 opened this issue Sep 3, 2024 · 0 comments
Labels
bug Something isn't working command | import The import command good first issue Good for newcomers

Comments

@smyle10
Copy link

smyle10 commented Sep 3, 2024

tmt-1.35.0-1

Given a metadata file:

[General]
name=/kernel/networking/netfilter/modules_params
description=/kernel/networking/netfilter/modules_params
license=GPLv2
confidential=no
destructive=no

[restraint]
entry_point=bash ./runtest.sh
max_time=2h
softDependencies=    # <-------------------------- empty here
repoRequires=networking/common

tmt test import --restraint got:

$ tmt -vvvvdddd test import --restraint -vvvvdddd
Checking the '/home/mshi/wks/kernel/networking/netfilter/modules_params' directory.
Restraint file found in '/home/mshi/wks/kernel/networking/netfilter/modules_params/metadata'.
task: /kernel/networking/netfilter/modules_params
summary: /kernel/networking/netfilter/modules_params
test: bash ./runtest.sh
framework: shell
duration: 2h
recommend:
Purpose found in '/home/mshi/wks/kernel/networking/netfilter/modules_params/PURPOSE'.
description:
This testcase aim to test netfilter modules:
1.loadable/unload
2.doubled params load #bz1601662
3,fuzzed params load
Nitrate No non-disabled testcase found for '/kernel/networking/netfilter/modules_params'.

list index out of range

Removing the line "softDependencies=" makes it work

@lukaszachy lukaszachy added bug Something isn't working good first issue Good for newcomers command | import The import command labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command | import The import command good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants