From 883886b594fbf92d3b21adf49dc78aed13349209 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 11 Oct 2019 12:05:07 -0400 Subject: Move SConstruct from test to file fixture --- test/fixture/SConstruct_test_main.py | 3 +++ test/option/debug-action-timestamps.py | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 test/fixture/SConstruct_test_main.py diff --git a/test/fixture/SConstruct_test_main.py b/test/fixture/SConstruct_test_main.py new file mode 100644 index 0000000..8d2d2b0 --- /dev/null +++ b/test/fixture/SConstruct_test_main.py @@ -0,0 +1,3 @@ +DefaultEnvironment(tools=[]) +env = Environment() +env.Program('main.exe', ['main.c']) diff --git a/test/option/debug-action-timestamps.py b/test/option/debug-action-timestamps.py index 11a4bf5..0277516 100644 --- a/test/option/debug-action-timestamps.py +++ b/test/option/debug-action-timestamps.py @@ -31,11 +31,7 @@ _python_ = TestSCons._python_ def setup_fixtures(): test.file_fixture('../fixture/test_main.c', 'main.c') - test.write('SConstruct', """ -DefaultEnvironment(tools=[]) -env = Environment() -env.Program('main.exe', ['main.c']) -""") + test.file_fixture('../fixture/SConstruct_test_main.py', 'SConstruct') def test_help_function(): # Before anything else, make sure we get valid --debug=action_timestamps results -- cgit v0.12