You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some serious issues with how test cases were run in the last stable release. I installed rpm sources for ksh on opensuse with zypper source install ksh and did rpmbuild -ba ksh.spec. Test cases were run during the build and I saw errors like :
/tmp/ksh-build.hZy52m/tmp_1d.huj
test alias begins at 2018-04-17+19:44:20
/tmp/ksh-build.hZy52m/tmp_3a.92s
alias.sh[90]: /foo: cannot create [Permission denied]
chmod: cannot access '/foo': No such file or directory
alias.sh[93]: hash -r -- foo failed, expected foo=/foo, got
alias.sh[90]: /-foo: cannot create [Permission denied]
chmod: cannot access '/-foo': No such file or directory
alias.sh[93]: hash -r -- -foo failed, expected -foo=/-foo, got
alias.sh[90]: /--: cannot create [Permission denied]
At the end, my home directory was wiped out and filled with files like:
a a-b abc abd abe aXb b bb bcd bdir Beware c ca cb d dd de man
These files are created by ksh test script. @bitstreamout Are you aware about this issue ? I am running a vanilla openSUSE Leap 42.3 system.
@krader1961 I have seen .sh_history file being modified when I run test cases on my fedora system. We should run the test cases in a sandboxed environment.
The text was updated successfully, but these errors were encountered:
I'm just about to open a PR that will fix this; or at least lay the groundwork for fixing this in a comprehensive manner. I've got a new test runner script that ensures every unit test is run in its own unique directory, with consistent env vars, and using a consistent preamble and postscript around each unit test. This is part of fixing #429 and #461.
It would be a good idea to put a warning before running test cases in the legacy test script. Wiping out your home directory is the last thing you would want while running test cases.
Thanks @krader1961 for taking on this. After #481 this should not happen with the current development version. @bitstreamout For now I can only suggest you to disable running test cases in rpm builds.
There are some serious issues with how test cases were run in the last stable release. I installed rpm sources for
ksh
on opensuse withzypper source install ksh
and didrpmbuild -ba ksh.spec
. Test cases were run during the build and I saw errors like :At the end, my home directory was wiped out and filled with files like:
These files are created by
ksh
test script. @bitstreamout Are you aware about this issue ? I am running a vanilla openSUSE Leap 42.3 system.@krader1961 I have seen
.sh_history
file being modified when I run test cases on my fedora system. We should run the test cases in a sandboxed environment.The text was updated successfully, but these errors were encountered: