Skip to content

Commit

Permalink
Fix finding Python in SpawnEnvSetupperTest
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Jan 20, 2025
1 parent 413784c commit 0c04d13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cxx/SpawnEnvSetupperTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ namespace tut {
set_test_name("It sets the environment variables specified in the config");

TempDirCopy dir("stub/wsgi", "tmp.wsgi");
string startCommand = "echo 'import os, json; print(json.dumps(dict(os.environ)))' | " + findPythonCommand() + " > env.json";
config.environmentVariables.insert("MY_VAR", "value");
config.startCommand = "echo 'import os, json; print(json.dumps(dict(os.environ)))' | python > env.json";
config.startCommand = startCommand.c_str();
init(SPAWN_DIRECTLY);
ensure("SpawnEnvSetupper succeeds", execute("--before"));

Expand Down

0 comments on commit 0c04d13

Please sign in to comment.