mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-30 17:18:42 +00:00
test(process): simplify undo test command using inline strings and bypass ci impersonation
This commit is contained in:
1 parent
514e186510
commit
95ed08abf2
1 file changed
+2
-2
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user