-
Notifications
You must be signed in to change notification settings - Fork 79
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
Windows: cannot run executable found relative to current directory #284
Comments
What happens if you do |
Yes, fails, but with
I also tried |
You might need to do |
Nope:
|
Share a full reproducer please. Ideally a small one. |
Will do, but tomorrow, it's midnight here . Thanks for your time so far! |
Ok, this branch only contains 1 script, and 2 CI jobs: one on ubuntu (for reference) and one on windows. The test script is here And, believe it or not: this singular test works under windows. I'm baffled... |
Ok, I found the culprit. This leads to the errors: - name: build
run: go build
- name: test
run: make test If I run the build as the last step: - name: test
run: make test
- name: build
run: go build ... then it works! So, the actual fix is to modify my Makefile like this: modified Makefile
@@ -70,7 +70,7 @@ install: buildlocal
clean:
rm -rf $(tool) releases coverage.out
-test:
+test: clean
ANYDB_PASSWORD=test go test -v ./... That is, in order for the testscript tests to work on windows there has to be no binary of the same name in the current directory laying around from a previous step. |
Howdy,
I am executing tests using testscript on a Windows VM. Works on Linux, but fails on windows.
Any help would be much appreciated!
Best,
Tom
The text was updated successfully, but these errors were encountered: