-
Notifications
You must be signed in to change notification settings - Fork 66
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
test.sh changes files in-place #58
Comments
Perhaps this is mostly my understanding: when Would (I still wonder if it would be better to have an "undo |
I found (and hopefully corrected) the (somewhat complex) issue. The problem was an incorrect edit from my side, which wasn't detected, because the corresponding test wasn't working due to an earlier shellcheck warning fix. |
I was just working on a PR for some of those (namely, the quoted |
Thank you for the effort, and my apologies for not being able to code much for it.
Currently, in
./test.sh
, test 1 passes the first time then fails the second and subsequent times. This is because something modifies files in-place and does not completely clean up.(Side note, related to #57, is that all other tests pass on the first and subsequent tests. They certainly take longer, but this consistent with everything else in GfW: the windows interface appears to make some operations rather slow. The test-1 failure is not unique to Windows, I can reproduce on ubuntu-16.04.)
(I include some verbose script output below, but frankly I am confident that the problem is somewhere around lines 305 or 406 of
./test.sh
, since those are the only lines that reference thefoo
file (noted as an untracked file ingit status
). Further, it's likely in the first 10 or so tests, since I'm typically able to interrupt soon after test 1 but not so finely-controlled that I know which test is doing it.)Steps
Fresh clone, so that
git status
produces nothing.Run
bash -x test.sh
, interrupt after the first test.verbose test output
git status
and notice that two files have changed.git diff
bash -x test.sh
now fails test 1, becausegit diff
returns some changed files.BTW: GfW users will likely also need to know that
more
is used in the tests if not ingit-issue.sh
itself.more
is not installed by default in GfW, so my workaround for testing has beenThe text was updated successfully, but these errors were encountered: