-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FunctionalTests: support variable local cache root
We update the CloneWithDefaultLocalCacheLocation() functional test so it accommodates variable local cache paths on Linux, depending on whether $XDG_CACHE_HOME is set or not. This allows the test to succeed on developer systems where we want to avoid polluting the default ~/.cache/scalar directory during test runs and so set $XDG_CACHE_HOME explicitly. Note that the new ScalarTestConfig.DefaultLocalCacheRoot accessor returns a path on Windows which should be "C:\.scalarCache", to match what would be supplied by the TryGetDefaultLocalCacheRoot() method of the WindowsPlatform if it were passed the default functional test enlistment root path. However, this Windows- specific DefaultLocalCacheRoot value is unused, as the only functional test which uses it is CloneWithDefaultLocalCacheLocation() and that test belongs to the POSIXOnly category.
- Loading branch information
1 parent
9e859df
commit a4cee25
Showing
2 changed files
with
40 additions
and
4 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