From 1aabcbd4b9950caade7d0cf7ba0fbd3066ab4303 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 16 Feb 2023 12:52:57 +1100 Subject: [PATCH] autotest: add more install-script-in-context methods --- Tools/autotest/common.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/common.py b/Tools/autotest/common.py index c9eaefebc4..159bcd7eba 100644 --- a/Tools/autotest/common.py +++ b/Tools/autotest/common.py @@ -4140,11 +4140,21 @@ class AutoTest(ABC): def install_example_script_context(self, scriptname): '''installs an example script which will be removed when the context goes away''' - if self.mav is None: - return self.install_example_script(scriptname) self.context_get().installed_scripts.append(scriptname) + def install_test_script_context(self, scriptname): + '''installs an test script which will be removed when the context goes + away''' + self.install_test_script(scriptname) + self.context_get().installed_scripts.append(scriptname) + + def install_applet_script_context(self, scriptname): + '''installs an applet script which will be removed when the context goes + away''' + self.install_applet_script(scriptname) + self.context_get().installed_scripts.append(scriptname) + def rootdir(self): this_dir = os.path.dirname(__file__) return os.path.realpath(os.path.join(this_dir, "../.."))