teemtee / tmt

Test Management Tool
MIT License
76 stars 112 forks source link

`tmt test lint` should try to assert file in `test` attribute exists #2848

Open lukaszachy opened 1 month ago

lukaszachy commented 1 month ago

Could be hard to implement as test can be any bash script but: If test references a file, it would be nice if tmt tests lint would check its existence - at least for files which are relative to the path

Use case: test: ./this_file but rename/move the this_file within fmf root - running tmt lint just checks that the path directory exists.

Feature can be 'one huge can of worms' as test can be bash script without any files in it or access files created in prepare / dist-git step...

Some examples which could be hard to lint: test: echo test: FOO=bar echo test: ls /usr/bin/SOMETHING `test: "long bash script..."