toaster.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
To: toaster@lists.yoctoproject.org
Cc: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Subject: [PATCH v2 5/6] toaster/test: Handle case when SSTATE_DIR and DL_DIR not visible in the page project/BitBake variables
Date: Thu, 14 Dec 2023 23:11:31 +0100	[thread overview]
Message-ID: <20231214221132.603532-5-alassane.yattara@savoirfairelinux.com> (raw)
In-Reply-To: <20231214221132.603532-1-alassane.yattara@savoirfairelinux.com>

Skip continu runing testcase if SSTATE_DIR or DL_DIR no set in page
Signed-off-by: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
---
 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/toaster/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 = self.wait_until_visible('#change-dl_dir-icon', poll=2)
         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 = self.wait_until_visible('#change-dl_dir-icon', poll=2)
         change_dl_dir_btn.click()
 
@@ -220,8 +221,8 @@ class TestProjectConfig(SeleniumFunctionalTestCase):
             self.wait_until_visible('#change-sstate_dir-icon', poll=2)
             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 project/BitBake variables')
 
         # path doesn't start with / or ${...}
         input_field = self.wait_until_visible('#new-sstate_dir', poll=2)
-- 
2.34.1



  parent reply	other threads:[~2023-12-14 22:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14 22:11 [PATCH v2 1/6] toaster/test: bug-fix element click intercepted in browser/test_layerdetails_page.py Alassane Yattara
2023-12-14 22:11 ` [PATCH v2 2/6] toaster/test: logging warning in console, trying to kill unavailable Runbuilds process Alassane Yattara
2023-12-14 22:11 ` [PATCH v2 3/6] toaster/test: Added skip to run test on ElementClickInterceptedException Alassane Yattara
2023-12-14 22:11 ` [PATCH v2 4/6] toaster/test: Removed all time.sleep occurrence Alassane Yattara
2023-12-14 22:11 ` Alassane Yattara [this message]
2023-12-14 22:11 ` [PATCH v2 6/6] toaster/test: Bug-Fix testcase bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py Alassane Yattara
2023-12-15  0:03 ` [Toaster] [PATCH v2 1/6] toaster/test: bug-fix element click intercepted in browser/test_layerdetails_page.py Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231214221132.603532-5-alassane.yattara@savoirfairelinux.com \
    --to=alassane.yattara@savoirfairelinux.com \
    --cc=toaster@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).