diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-02-26 08:28:19 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-02-26 08:28:19 +0100 |
commit | c2865937f841863b3d21499e18d72b144ee9dac0 (patch) | |
tree | a9efefd1663095250b71ea3785a21200e3ea697d /test/test_timingharness.py | |
parent | e36d8268cb1c0adccc6de77c91cc5ca70edd1989 (diff) |
test_timingharness: disable decisiontrees for nrf24 test
Diffstat (limited to 'test/test_timingharness.py')
-rwxr-xr-x | test/test_timingharness.py | 3 |
1 files changed, 3 insertions, 0 deletions
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__": |