-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tests broken on Linux #1
Comments
This message is from class-main.php. Looks as if it wasn't using the one alongside the binary in the tempdir but the one from $(pwd) instead. Another Paths.Binary() mess? |
Worked around by cd'ing into the temporary directory -> https://travis-ci.org/xp-runners/spec/jobs/106030806 Unfortunately cannot find a good way to deal with this, especially because it's working on my Ubuntu virtualboxes. |
Ah, got it to break on a fresh one with XP v7.1.0 root@vagrant-ubuntu-vivid-64:/usr/bin# curl -sSL \
https://bintray.com/artifact/download/xp-runners/generic/setup-7.1.0.sh | sh
XP Runners setup (7.1.0)
(c) 2016 https://github.com/xp-runners/reference/
# ...
Done, runners installed to /usr/bin vagrant@vagrant-ubuntu-vivid-64:~$ /usr/bin/xp -v
Unhandled Exception:
System.IO.FileNotFoundException: Cannot find [class-main.php] in [/home/vagrant/]
# ... With added debugging, we have: vagrant@vagrant-ubuntu-vivid-64:~$ /usr/bin/xp -v
BIN = file:///home/vagrant/xp.exe
# ^^^^^^^^^^^^^^^^^^^^
# This is always the current directory |
After a bit of research, there seem to be the following vagaries here:
See also http://stackoverflow.com/questions/616584/how-do-i-get-the-name-of-the-current-executable-in-c |
See xp-runners/spec#1 (comment) for an in-depth explanaion
✅ Released as 7.1.1 |
Expect:
Result instead:
Works on Mac OS X -> https://travis-ci.org/xp-runners/spec/jobs/106027768
The text was updated successfully, but these errors were encountered: