Skip to content
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

Use abs path to testing binary #2344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

helsaawy
Copy link
Contributor

Use the full path to the functional.test.exe binary when sharing into the uVM for the TestHVSock_* test cases in
test\functional\hvsock_test.go to prevent vSMB share issues.

Otherwise, os.Args[0] will return the path that the tests were run with (e.g., .\functional.test.exe), which can cause vSMB to fail with The parameter is incorrect. (likely because it cannot find the current file).

@helsaawy helsaawy added the tests Pull requests that modify tests label Dec 17, 2024
@helsaawy helsaawy requested a review from a team as a code owner December 17, 2024 15:39
@helsaawy helsaawy marked this pull request as draft December 17, 2024 18:13
Use the full path to the `functional.test.exe` binary when sharing into
the uVM or container for the `TestHVSock_*` test cases in
`test\functional\hvsock_test.go` to prevent vSMB share issues.

Otherwise, `os.Args[0]` will return the path that the tests were run
with (e.g., `.\functional.test.exe`), which can cause vSMB to fail with
`The parameter is incorrect.` (likely because it cannot find the current
file).

Signed-off-by: Hamza El-Saawy <[email protected]>
@helsaawy helsaawy marked this pull request as ready for review December 18, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Pull requests that modify tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants