Skip to content

Commit

Permalink
Fix location of the local daemon log in the test harness
Browse files Browse the repository at this point in the history
/tmp is a location that will usually not be user-writable on Windows.
  • Loading branch information
glandium committed Nov 14, 2023
1 parent 1d71d5d commit 2f967f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/harness/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ pub fn start_local_daemon(cfg_path: &Path, cached_cfg_path: &Path) {
.arg("--start-server")
// Uncomment following lines to debug locally.
.env("SCCACHE_LOG", "debug")
.env("SCCACHE_ERROR_LOG", "/tmp/sccache_local_daemon.txt")
.env(
"SCCACHE_ERROR_LOG",
env::temp_dir().join("sccache_local_daemon.txt"),
)
.env("SCCACHE_CONF", cfg_path)
.env("SCCACHE_CACHED_CONF", cached_cfg_path)
.status()
Expand Down

0 comments on commit 2f967f9

Please sign in to comment.