diff options
author | yanxk <yanxk.fnst@fujitsu.com> | 2022-08-11 16:40:20 +0800 |
---|---|---|
committer | yanxk <yanxk.fnst@fujitsu.com> | 2022-08-11 16:40:20 +0800 |
commit | 897c981ba437823f9c691247c97815599fbddc3f (patch) | |
tree | c24516db38ae6bf5fd0aabdb84ef13e6cfcce78a | |
parent | 96f6fed2eba4ddaa6912a5cdba41e80a91e47115 (diff) |
agl-test-framework: Add new method to the plugins/agl_test_ptest_base.py
This new method is named 'run_ptest', which means it runs the ptest
and does the log process, it is a common method that all ptest cases
would require.
Bug-AGL: SPEC-4345
Signed-off-by: yanxk <yanxk.fnst@fujitsu.com>
Change-Id: Ifb2ae53ca3aad941216dae94ac5e07d28eca55b7
-rw-r--r-- | plugins/agl_test_ptest_base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/agl_test_ptest_base.py b/plugins/agl_test_ptest_base.py index 2bbe6e0..89eb554 100644 --- a/plugins/agl_test_ptest_base.py +++ b/plugins/agl_test_ptest_base.py @@ -44,3 +44,8 @@ class PTESTBase(AGLBaseTest): check_test_script = test_script.is_file() return check_common and check_ptest_cmd and check_test_script + + def run_ptest(self): + if(self.precheck() == True): + self.run_test_fun() + self.log_process() |