-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testscript: create a hidden temp directory by default (#135)
When running a testscript, we currently create a temporary directory in $WORK/tmp. This is problematic because it interacts badly with cmd/go (which is used by go/packages) trying to resolve the ./... pattern from $WORK. Instead establish a temporary directory in workdir, but use a prefix that ensures this directory will not be walked when resolving the ./... pattern from workdir.
- Loading branch information
Showing
3 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# check that the Setup function saw the unarchived files, | ||
# including the temp directory that's always created. | ||
setup-filenames a b tmp | ||
setup-filenames .tmp a b | ||
|
||
-- a -- | ||
-- b/c -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters