-
Notifications
You must be signed in to change notification settings - Fork 123
checkbashism prints "strange results" #3834
Comments
I did not touch the Regarding the other files: yes we should probably exclude them to avoid strange results. 😄 |
[CM T0] On the other hand the mentioned file /tests/shell/check_bashisms.sh has the last commit on 11.11.2019. Am I missing something or did the problem get fixed some other way? |
Hard to say, but I'd say the root issue is still relevant. AFAICT we run
I think the issue doesn't occur right now, because I think the goal here should be to add some general filters to
|
I still get:
when running the test. Is this maybe dependent on the version of checkbashism? I have "devscripts package, version 2.21.3+deb11u1" |
But you only see this when running
The version probably plays a role too. |
As @kodebach already mentioned, the difference is that in the first posting the test fails, while currently it passes. Another point is that the checkbashisms-script is not installed in the docker-container that is used when following the tutorial at https://www.libelektra.org/tutorials/run-all-tests-with-docker. If I try to run the test inside the container, I get the output: After installing the script (version 2.22.1) in the container, I get the same output as locally on Gentoo and in the posting of @markus2330. |
The proper fix would probably be fixing checkbashisms that it proper deals with non-scripts and does not have "strange results". For CM and this issue a whitelist/blacklist in the style of e.g. tests/linkchecker.whitelist is probably a nice solution. Goals are:
|
This happens, because we call So I would actually suggest:
If we just rely on a whitelist/blacklist solution, we'd have to blacklist all non-shell-script files in
|
I mark this stale as it did not have any activity for one year. I'll close it in two weeks if no further activity occurs. If you want it to be alive again, ping by writing a message here or create a new issue with the remainder of this issue. |
I closed this now because it has been inactive for more than one year. If I closed it by mistake, please do not hesitate to reopen it or create a new issue with the remainder of this issue. |
from https://build.libelektra.org/blue/organizations/jenkins/libelektra/detail/PR-3830/6/pipeline/397
Please fix all the problems by excluding the files in ./tests/shell/check_bashisms.sh
@mpranj did you already fix (part) of this problem?
The text was updated successfully, but these errors were encountered: