We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e03cb commit 6060cd0Copy full SHA for 6060cd0
examples/all_the_things.py
@@ -162,8 +162,8 @@ def teardown(test):
162
test.logger.info('Running teardown')
163
164
165
-def main():
166
- test = htf.Test(
+def make_test():
+ return htf.Test(
167
htf.PhaseGroup.with_teardown(teardown)(
168
hello_world,
169
set_measurements,
@@ -180,6 +180,10 @@ def main():
180
test_name='MyTest',
181
test_description='OpenHTF Example Test',
182
test_version='1.0.0')
183
+
184
185
+def main():
186
+ test = make_test()
187
test.add_output_callbacks(
188
callbacks.OutputToFile(
189
'./{dut_id}.{metadata[test_name]}.{start_time_millis}.pickle'))
0 commit comments