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

user should be able to set the working dir with --workdir #156

Closed
dylanhitt opened this issue Dec 1, 2020 · 1 comment · Fixed by #158
Closed

user should be able to set the working dir with --workdir #156

dylanhitt opened this issue Dec 1, 2020 · 1 comment · Fixed by #158

Comments

@dylanhitt
Copy link
Member

Description

A user should have the ability to override all empty tests dir with a command line argument such as --workdir.

This could require a major version bump. Currently in config section of a suite file workdir is known as dir. It would be nice if these matched.

We may want to complete #131 as well before we do the version bump.

@SimonBaeumer
Copy link
Member

The --working-dir option looks like a good option, like make -C /dir.
Changing directory could be implemented with the syscall:
https://man7.org/linux/man-pages/man2/chdir.2.html
https://golang.org/src/os/file.go?s=8392:8420#L278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants