From 95ed08abf2ebf34eccd9c514cced3761e43bc298 Mon Sep 17 00:00:00 2001 From: Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com> Date: Tue, 29 Sep 2026 14:16:18 -0300 Subject: [PATCH] test(process): simplify undo test command using inline strings and bypass ci impersonation --- tests/unit/test_process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_process.cpp b/tests/unit/test_process.cpp index 3104b245f..ccd4f3321 100644 --- a/tests/unit/test_process.cpp +++ b/tests/unit/test_process.cpp @@ -454,9 +454,9 @@ TEST_F(ProcessRefreshTest, UpdateAppsAndEnv_PreservesSessionEnvironment) { // but a valid undo_cmd that writes SUNSHINE_APP_NAME to a file. fs::path out_file = test_dir / "undo_env.txt"; #ifdef _WIN32 - proc::cmd_t cmd("", "cmd.exe /c echo %SUNSHINE_APP_NAME% > \"" + out_file.string() + "\"", false); + proc::cmd_t cmd("", "cmd.exe /c echo %SUNSHINE_APP_NAME% > \"" + out_file.string() + "\"", true); #else - proc::cmd_t cmd("", "sh -c \"echo $SUNSHINE_APP_NAME > '" + out_file.string() + "'\"", false); + proc::cmd_t cmd("", "sh -c \"echo $SUNSHINE_APP_NAME > '" + out_file.string() + "'\"", true); #endif ctx.prep_cmds.push_back(std::move(cmd)); apps_initial.push_back(std::move(ctx));