-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy up the naming of the directories within the temporary work dir, from an integer corresponding to the 1-indexed argument number to the basename of the argument. As part of this change we better assert that scripts are indeed left behind when -work is supplied. Also make consistent the way we render a filename argument in the case of an error.
- Loading branch information
Showing
3 changed files
with
67 additions
and
17 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
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,8 +1,19 @@ | ||
# should support skip | ||
unquote file.txt | ||
# Test that passing -work leaves behind the working directory | ||
# that contains the temporary directories within which the | ||
# script arguments are expanded. | ||
# | ||
# This test also covers the use of multiple scripts which share | ||
# the same basename, ensuring that the naming of the directories | ||
# within the working directory. | ||
|
||
testscript -v -work file.txt | ||
unquote file.txt dir/file.txt | ||
|
||
testscript -v -work file.txt dir/file.txt | ||
stderr '\Qtemporary work directory: '$WORK'\E[/\\]tmp[/\\]' | ||
expandone $WORK/tmp/testscript*/file.txt/script.txt | ||
expandone $WORK/tmp/testscript*/file.txt1/script.txt | ||
|
||
-- file.txt -- | ||
>exec true | ||
-- dir/file.txt -- | ||
>exec true |