From patchwork Fri Dec 15 09:39:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 36356 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CE6AC4167B for ; Fri, 15 Dec 2023 09:39:38 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web10.58990.1702633170137987182 for ; Fri, 15 Dec 2023 01:39:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=HUwxNWJR; spf=pass (domain: savoirfairelinux.com, ip: 208.88.110.44, mailfrom: alassane.yattara@savoirfairelinux.com) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 83E909C3A2E for ; Fri, 15 Dec 2023 04:39:29 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id ZJhkF_k98c4X; Fri, 15 Dec 2023 04:39:29 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 2E27B9C3644; Fri, 15 Dec 2023 04:39:29 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com 2E27B9C3644 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1702633169; bh=yzpYLDWp8OgVhkGJY/xD+3sUXtT8iO2OfLWiEJH/TzA=; h=From:To:Date:Message-Id:MIME-Version; b=HUwxNWJRmyycgT2wnLLQMQ6tBjAGZUR6/1DsW7TPhGoboWNzi5UKpidgHJtrv2E1M nCfHtF+6Lp+Kn8zTO0rAV5JlFDZeIBEEYZUxTFhXBT67ZACIleA2EbFjFA0uAIBHuu Jh0TDLV7elvZwbiSlOBZPR1a1r5cgHmNmxtMCbVb0GnIaJpyselQudsEGc/v+oCpMW LB2d86iAN/tNDuNb71Z1FBxM6slbobKEjBoG1Zz+quK8HT1PpfVFIulb7VGHrUdpwb bHDDlvX10NYokdwSNcSxEABg0M7UTUggY1Q4ML0tZfUZtGXCsKuDuJOyqsxdn1ZcAE Cb9nnpTeKYoPA== X-Virus-Scanned: amavis at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10026) with ESMTP id KfKA9OVchH7P; Fri, 15 Dec 2023 04:39:28 -0500 (EST) Received: from jedi.. (unknown [196.127.183.75]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 427AC9C3453; Fri, 15 Dec 2023 04:39:28 -0500 (EST) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Alassane Yattara 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 Message-Id: <20231215093919.100274-4-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231215093919.100274-1-alassane.yattara@savoirfairelinux.com> References: <20231215093919.100274-1-alassane.yattara@savoirfairelinux.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 15 Dec 2023 09:39:38 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/6112 Skip continu runing testcase if SSTATE_DIR or DL_DIR no set in page Signed-off-by: Alassane Yattara --- 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)