Skip to content
Snippets Groups Projects
Commit 85adb78d authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'trigtest-refcomp' into 'master'

TriggerTest: Use new reference formats in MT and reverseViews tests

Closes ATR-22368

See merge request atlas/athena!38317
parents 4f62f9eb 5776ee1a
No related branches found
No related tags found
No related merge requests found
...@@ -29,12 +29,13 @@ test.art_type = 'build' ...@@ -29,12 +29,13 @@ test.art_type = 'build'
test.exec_steps = [ex] test.exec_steps = [ex]
test.check_steps = CheckSteps.default_check_steps(test) test.check_steps = CheckSteps.default_check_steps(test)
# Add a step comparing counts in the log against reference from test_trig_data_v1Dev_build # Add a step comparing counts against a reference
refcomp = CheckSteps.RegTestStep("CountRefComp") chaindump = test.get_step("ChainDump")
refcomp.regex = r'TrigSignatureMoniMT\s*INFO\sHLT_.*|TrigSignatureMoniMT\s*INFO\s-- #[0-9]+ (Events|Features).*' chaindump.args = '--json --yaml ref_data_v1Dev_build.new'
refcomp.reference = 'TriggerTest/ref_data_v1Dev_build.ref' refcomp = CheckSteps.ChainCompStep("CountRefComp")
refcomp.input_file = 'ref_data_v1Dev_build.new'
refcomp.required = True # Final exit code depends on this step refcomp.required = True # Final exit code depends on this step
CheckSteps.add_step_after_type(test.check_steps, CheckSteps.LogMergeStep, refcomp) CheckSteps.add_step_after_type(test.check_steps, CheckSteps.ChainDumpStep, refcomp)
# Use RootComp reference from test_trig_data_v1Dev_build # Use RootComp reference from test_trig_data_v1Dev_build
test.get_step('RootComp').ref_test_name = 'trig_data_v1Dev_build' test.get_step('RootComp').ref_test_name = 'trig_data_v1Dev_build'
......
...@@ -29,12 +29,13 @@ test.art_type = 'build' ...@@ -29,12 +29,13 @@ test.art_type = 'build'
test.exec_steps = [ex] test.exec_steps = [ex]
test.check_steps = CheckSteps.default_check_steps(test) test.check_steps = CheckSteps.default_check_steps(test)
# Add a step comparing counts in the log against reference from test_trig_data_v1Dev_build # Add a step comparing counts against a reference
refcomp = CheckSteps.RegTestStep("CountRefComp") chaindump = test.get_step("ChainDump")
refcomp.regex = r'TrigSignatureMoniMT\s*INFO\sHLT_.*|TrigSignatureMoniMT\s*INFO\s-- #[0-9]+ (Events|Features).*' chaindump.args = '--json --yaml ref_data_v1Dev_build.new'
refcomp.reference = 'TriggerTest/ref_data_v1Dev_build.ref' refcomp = CheckSteps.ChainCompStep("CountRefComp")
refcomp.input_file = 'ref_data_v1Dev_build.new'
refcomp.required = True # Final exit code depends on this step refcomp.required = True # Final exit code depends on this step
CheckSteps.add_step_after_type(test.check_steps, CheckSteps.LogMergeStep, refcomp) CheckSteps.add_step_after_type(test.check_steps, CheckSteps.ChainDumpStep, refcomp)
# Use RootComp reference from test_trig_data_v1Dev_build # Use RootComp reference from test_trig_data_v1Dev_build
test.get_step('RootComp').ref_test_name = 'trig_data_v1Dev_build' test.get_step('RootComp').ref_test_name = 'trig_data_v1Dev_build'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment