-
Notifications
You must be signed in to change notification settings - Fork 67
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
cargo xtest doesn't work under WSL1 with native QEMU #57
Comments
This seems to be an issue of the |
Which version of bootimage are you using? Does the issue also occur on the latest version (0.8.0)? I think the absolute path is obtained through the |
This is with 0.8.0 |
I looked into this a bit more and I think that this behavior comes from cargo itself. For
We see that cargo invokes the For
So we don't do anything special with these paths in As a side note, I don't think that cargo's behavior is problematic. If your system environment cannot deal with absolute paths this sounds more like a problem of the environment. I would expect that there is some way to translate WSL paths to native Windows paths. Maybe it's possible to do such a translation in your |
~/bin/qemu-system-x86_64
putexec /mnt/c/Program\ Files/qemu/qemu-system-x86_64.exe "$@"
and make the file executablecargo xrun
cargo xtest
The xrun command works because it provides a relative path to the target to run to qemu. However xtest fails because it provides an absolute path which native QEMU doesn't understand. Passing a relative path just like xrun does should fix the issue.
The text was updated successfully, but these errors were encountered: