[PATCH v3 4/5] toaster/test: Handle case when SSTATE_DIR and DL_DIR not visible in the page project/BitBake variables
Alassane Yattara <[email protected]> Fri, 15 Dec 2023 10:39:18 +0100
| Newsgroups | org.yoctoproject.lists.toaster |
|---|---|
| Message-ID | <[email protected]> |
Skip continu runing testcase if SSTATE_DIR or DL_DIR no set in page Signed-off-by: Alassane Yattara <[email protected]> --- lib/toaster/tests/functional/test_project_config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/toaster/tests/functional/test_project_config.py b/lib/to= aster/tests/functional/test_project_config.py index 2d162d81..c70936e1 100644 --- a/lib/toaster/tests/functional/test_project_config.py +++ b/lib/toaster/tests/functional/test_project_config.py @@ -162,8 +162,9 @@ class TestProjectConfig(SeleniumFunctionalTestCase): try: change_dl_dir_btn =3D self.wait_until_visible('#change-dl_di= r-icon', poll=3D2) except TimeoutException: - # If download dir is not displayed, test is skipped - return True + # skip test if becase variable DL_DIR is not set/visible in = page + self.skipTest('DL_DIR is not set/visible in the page project= /BitBake variables') + change_dl_dir_btn =3D self.wait_until_visible('#change-dl_dir-ic= on', poll=3D2) change_dl_dir_btn.click() =20 @@ -220,8 +221,8 @@ class TestProjectConfig(SeleniumFunctionalTestCase): self.wait_until_visible('#change-sstate_dir-icon', poll=3D2) self.click('#change-sstate_dir-icon') except TimeoutException: - # If sstate_dir is not displayed, test is skipped - return True + # skip test if becase variable SSTATE_DIR is not set/visible= in page + self.skipTest('SSTATE_DIR is not set/visible in the page pro= ject/BitBake variables') =20 # path doesn't start with / or ${...} input_field =3D self.wait_until_visible('#new-sstate_dir', poll=3D= 2) --=20 2.34.1