dracut icon indicating copy to clipboard operation
dracut copied to clipboard

test: skip test 50,60 if ifcfg dracut module can not be installed

Open Henrik66 opened this issue 2 years ago • 4 comments

Test 50 and 60 have a dependency on the ifcfg dracut module. If ifcfg dracut module is not available, than the preconditions for these tests are not met.

Since ifcfg dracut module is not available in many Linux enviroments (such as Arch or Debian), it make sense to explicitelly skip these tests instead of failing them as they are simply not applicable to many Linux distributions in their current form.

Henrik66 avatar Oct 29 '23 11:10 Henrik66

Please provide a reasoning in the git commit. At least these tests were failing on Debian/Ubuntu (see also bug #2328).

bdrung avatar Oct 30 '23 10:10 bdrung

@bdrung Thanks for the review. I added more reasoning to the git commit message.

test: skip test 50,60 if ifcfg dracut module can not be installed

Test 50 and 60 have a dependency on the ifcfg dracut module.
If ifcfg dracut module is not available, than the preconditions
for these tests are not met.

Since ifcfg dracut module is not available in many Linux enviroments
(such as Arch or Debian), it make sense to explicitelly skip these
tests instead of failing them as they are simply not applicable
to many Linux distributions in their current form.

As to your question, these tests are only meant to run if ifcfg dracut module is supported. A better solution would be to reimplement these tests so that they do not require ifcfg dracut module. I am not able to provide such a solution at this time, so until than perhaps we can just skip the test.

Henrik66 avatar Oct 31 '23 00:10 Henrik66

@bdrung Thanks for the review. I added more reasoning to the git commit message.

Thanks.

As to your question, these tests are only meant to run if ifcfg dracut module is supported. A better solution would be to reimplement these tests so that they do not require ifcfg dracut module. I am not able to provide such a solution at this time, so until than perhaps we can just skip the test.

That information could go into the commit message as well, saying something like: Instead of disabling the test, they should be reimplement so that they do not require ifcfg dracut module in the future.

bdrung avatar Oct 31 '23 10:10 bdrung

That information could go into the commit message as well, saying something like: Instead of disabling the test, they should be reimplement so that they do not require ifcfg dracut module in the future.

okay. I updated the commit message. Thanks @bdrung

Henrik66 avatar Oct 31 '23 23:10 Henrik66