From 9e2ce0077a1bed47c330855263bbf52083867856 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 25 Jul 2019 12:26:27 +0100 Subject: [PATCH] Use documented variables for Iter_Test action chances --- util/test/tests/Iter_Test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/test/tests/Iter_Test.py b/util/test/tests/Iter_Test.py index 99b21d265..d00d21195 100644 --- a/util/test/tests/Iter_Test.py +++ b/util/test/tests/Iter_Test.py @@ -181,9 +181,9 @@ class Iter_Test(rdtest.TestCase): do_pixel_debug = 1.0 # Chance of doing pixel history at the current event and debugging a pixel (if valid) actions = { - 'Image Save': {'chance': 0.25, 'func': self.image_save}, - 'Vertex Debug': {'chance': 1.0, 'func': self.vert_debug}, - 'Pixel History & Debug': {'chance': 1.0, 'func': self.pixel_debug}, + 'Image Save': {'chance': do_image_save, 'func': self.image_save}, + 'Vertex Debug': {'chance': do_vert_debug, 'func': self.vert_debug}, + 'Pixel History & Debug': {'chance': do_pixel_debug, 'func': self.pixel_debug}, } # To choose an action, if we're going to do one, we take random in range(0, choice_max) then check each action