File tree Expand file tree Collapse file tree
scripts/e2e/lib/doctor-install-switch Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ run_flow() {
139139
140140 echo " == Flow: $name =="
141141 openclaw_test_state_create " switch-${name} " empty
142+ unset OPENCLAW_HOME OPENCLAW_STATE_DIR OPENCLAW_CONFIG_PATH
142143 export USER=" testuser"
143144
144145 if ! openclaw_e2e_maybe_timeout " $command_timeout " bash -c " $install_cmd " > " $install_log " 2>&1 ; then
Original file line number Diff line number Diff line change @@ -4370,12 +4370,17 @@ heartbeat_elapsed="\${BASH_REMATCH[1]}"
43704370
43714371 expectTextToIncludeAll ( scenario , [
43724372 'command_timeout="${OPENCLAW_DOCKER_DOCTOR_SWITCH_COMMAND_TIMEOUT:-900s}"' ,
4373+ 'openclaw_test_state_create "switch-${name}" empty\n unset OPENCLAW_HOME OPENCLAW_STATE_DIR OPENCLAW_CONFIG_PATH' ,
43734374 'openclaw_e2e_maybe_timeout "$command_timeout" bash -c "$install_cmd"' ,
43744375 'openclaw_e2e_maybe_timeout "$command_timeout" bash -c "$doctor_cmd"' ,
43754376 'openclaw_e2e_maybe_timeout "$command_timeout" "$npm_bin" gateway install --wrapper "$wrapper" --force' ,
43764377 'openclaw_e2e_maybe_timeout "$command_timeout" node "$git_cli" doctor --repair --force --yes' ,
43774378 ] ) ;
43784379
4380+ expect (
4381+ scenario . match ( / u n s e t O P E N C L A W _ H O M E O P E N C L A W _ S T A T E _ D I R O P E N C L A W _ C O N F I G _ P A T H / gu) ,
4382+ ) . toHaveLength ( 1 ) ;
4383+
43794384 expect ( scenario ) . not . toMatch ( / ^ \s * i f ! t i m e o u t " \$ c o m m a n d _ t i m e o u t " / mu) ;
43804385 } ) ;
43814386
You can’t perform that action at this time.
0 commit comments