From c2865937f841863b3d21499e18d72b144ee9dac0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 26 Feb 2021 08:28:19 +0100 Subject: test_timingharness: disable decisiontrees for nrf24 test --- test/test_timingharness.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_timingharness.py b/test/test_timingharness.py index 3e7e5bd..9b55231 100755 --- a/test/test_timingharness.py +++ b/test/test_timingharness.py @@ -3,6 +3,7 @@ from dfatool.loader import TimingData, pta_trace_to_aggregate from dfatool.model import AnalyticModel from dfatool.parameters import prune_dependent_parameters +import os import unittest @@ -99,6 +100,7 @@ class TestModels(unittest.TestCase): ) def test_function_override(self): + os.environ["DFATOOL_NO_DECISIONTREES"] = "1" raw_data = TimingData(["test-data/20190815_122531_nRF24_no-rx.json"]) preprocessed_data = raw_data.get_preprocessed_data() by_name, parameters, arg_count = pta_trace_to_aggregate(preprocessed_data) @@ -157,6 +159,7 @@ class TestModels(unittest.TestCase): self.assertAlmostEqual( param_info("write", "duration")["function"].model_args[4], 1086, places=0 ) + os.environ.pop("DFATOOL_NO_DECISIONTREES") if __name__ == "__main__": -- cgit v1.2.3