mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix: trim non-live test setup work
This commit is contained in:
committed by
Peter Steinberger
parent
33e6a6724d
commit
d6ad92c1a0
+2
-1
@@ -355,7 +355,8 @@ export function installTestEnv(options?: { loadProfileEnv?: boolean }): {
|
||||
const realHome = process.env.HOME ?? os.homedir();
|
||||
const liveEnvSnapshot = { ...process.env };
|
||||
|
||||
if (options?.loadProfileEnv ?? live) {
|
||||
const shouldLoadProfileEnv = options?.loadProfileEnv ?? (live || allowRealHome);
|
||||
if (shouldLoadProfileEnv) {
|
||||
loadProfileEnv(realHome);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user