Skip to content

Commit 088fedb

Browse files
committed
test(cli): restore suite activation runtime after recovery test
The markerless stale-rendezvous recovery test reset the activation runtime parent to NULL instead of restoring g_cli_suite_runtime_parent, so every later cli test ran the activation probe against the developer's real /tmp/cbm-daemon-<uid>. Restore the suite value per the contract at tests/test_cli.c:61-65 and the sibling at :1310. Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
1 parent b49c7a7 commit 088fedb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/test_cli.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ TEST(cli_install_recovers_markerless_stale_rendezvous) {
14191419
snprintf(dir_arg, sizeof(dir_arg), "--dir=%s", install_dir);
14201420
char *install_argv[] = {"--force", "--skip-config", "--yes", dir_arg};
14211421
int install_rc = orphan_created ? cli_test_cmd_install(4, install_argv) : -1;
1422-
cbm_cli_set_activation_runtime_parent_for_test(NULL);
1422+
cbm_cli_set_activation_runtime_parent_for_test(g_cli_suite_runtime_parent);
14231423
cbm_set_auto_answer_for_test(0);
14241424

14251425
struct stat target_status = {0};

0 commit comments

Comments
 (0)