File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88SELECTOR=" $ROOT /bin/fm-account-directory.sh"
99TMP_ROOT=$( fm_test_tmproot fm-account-directory-tests)
10+ TMP_ROOT=$( cd " $( dirname " $TMP_ROOT " ) " && pwd -P) /$( basename " $TMP_ROOT " )
1011ACCOUNT_ROOT=" $TMP_ROOT /accounts"
1112FAKEBIN=$( fm_fakebin " $TMP_ROOT " )
1213QUOTA_LOG=" $TMP_ROOT /quota.log"
@@ -534,6 +535,7 @@ test_capacity_recovery_selects_a_different_account() {
534535 id=capacity-different-z4
535536 record=$( make_spawn_case capacity-different codex " $id " )
536537 read_spawn_case " $record "
538+ git -C " $SPAWN_WORKTREE " switch --quiet -c " fm/$id "
537539 meta=" $SPAWN_HOME /state/$id .meta"
538540 git_dir=$( git -C " $SPAWN_WORKTREE " rev-parse --absolute-git-dir)
539541 # shellcheck disable=SC2016 # JavaScript source is intentionally single-quoted.
@@ -931,7 +933,7 @@ test_failed_new_direct_spawn_returns_worktree_after_endpoint_cleanup() {
931933 status=$?
932934 fi
933935 [ " $status " -ne 0 ] || fail " new direct rollback fixture unexpectedly succeeded"
934- if ! grep -Fxq " return --force . " " $TREEHOUSE_LOG " ; then
936+ if ! grep -Fxq " return --force $recorded_worktree " " $TREEHOUSE_LOG " ; then
935937 fail " failed new direct spawn did not return its worktree: output=$out treehouse=$( cat " $TREEHOUSE_LOG " ) "
936938 fi
937939 [ ! -e " $SPAWN_WORKTREE " ] || fail " failed new direct spawn left its worktree registered"
You can’t perform that action at this time.
0 commit comments