From: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
To: toaster@lists.yoctoproject.org
Cc: Alassane Yattara <alassane.yattara@savoirfairelinux.com>
Subject: [PATCH v3 4/5] toaster/test: Handle case when SSTATE_DIR and DL_DIR not visible in the page project/BitBake variables
Date: Fri, 15 Dec 2023 10:39:18 +0100 [thread overview]
Message-ID: <20231215093919.100274-4-alassane.yattara@savoirfairelinux.com> (raw)
In-Reply-To: <20231215093919.100274-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
next prev parent reply other threads:[~2023-12-15 9:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-15 9:39 [PATCH v3 1/5] toaster/test: bug-fix element click intercepted in browser/test_layerdetails_page.py Alassane Yattara
2023-12-15 9:39 ` [PATCH v3 2/5] toaster/test: Handle ProcessLookupError, log warning in console Alassane Yattara
2023-12-15 9:39 ` [PATCH v3 3/5] toaster/test: Removed all time.sleep occurrences Alassane Yattara
2023-12-15 9:39 ` Alassane Yattara [this message]
2023-12-15 9:39 ` [PATCH v3 5/5] toaster/test: Bug-Fix testcase from bitbake/lib/toaster/tests/functional/test_project_page_tab_config.py Alassane Yattara
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=20231215093919.100274-4-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).