From patchwork Mon Oct 16 13:40:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alassane Yattara X-Patchwork-Id: 32379 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 9A108CDB465 for ; Mon, 16 Oct 2023 13:41:00 +0000 (UTC) Received: from mail.savoirfairelinux.com (mail.savoirfairelinux.com [208.88.110.44]) by mx.groups.io with SMTP id smtpd.web11.125939.1697463656409615795 for ; Mon, 16 Oct 2023 06:40:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@savoirfairelinux.com header.s=DFC430D2-D198-11EC-948E-34200CB392D2 header.b=n65sI+nx; 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 9D0759C280D for ; Mon, 16 Oct 2023 09:40:55 -0400 (EDT) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavis, port 10032) with ESMTP id AQQsNe3QX4HI; Mon, 16 Oct 2023 09:40:55 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id E9DA69C31D0; Mon, 16 Oct 2023 09:40:54 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.savoirfairelinux.com E9DA69C31D0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=savoirfairelinux.com; s=DFC430D2-D198-11EC-948E-34200CB392D2; t=1697463655; bh=Vj+IxNioigsBCOh6DHQ/2kqH7GTqRdGROLaSNxpR3Ow=; h=From:To:Date:Message-Id:MIME-Version; b=n65sI+nxRPShoDzfxCJmXWfllqQnGtGBRC1krAWXYnCRemxKNgNEW179M32ea3xCT w9GIZ+E5k4guW4d5tU1L1+fg0Y0t/MzQ2eeY0LHC8CpbJxO6b0pgnto0mV27nmXTn1 YAyA6krcyQCuL292DBj0T3/ys0AmRlIs+61xHJUT/cV7gt3ubaf7vnb8TswvzPXR5+ S9R2m53kf8DV6awKTq+mHnwBIXEpVrsdMNXedf1MrGug2t3VNFA1Mh8/MQQmHmoFBw VJSpWT8tqpLGOG6EKdf86gPmWnT84R39e6vxWWqGNBqFsXRbZFeiBQOqL9GNvu1FMh M9AuT+4cq5g7w== 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 B1pFt9OAC42Y; Mon, 16 Oct 2023 09:40:54 -0400 (EDT) Received: from jedi.. (unknown [196.117.75.249]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 156BD9C280D; Mon, 16 Oct 2023 09:40:53 -0400 (EDT) From: Alassane Yattara To: toaster@lists.yoctoproject.org Cc: Alassane Yattara Subject: [PATCH] Toaster: bug-fix on tests.browser.test_most_recent_builds_states Date: Mon, 16 Oct 2023 14:40:39 +0100 Message-Id: <20231016134039.135761-1-alassane.yattara@savoirfairelinux.com> X-Mailer: git-send-email 2.34.1 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 ; Mon, 16 Oct 2023 13:41:00 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/toaster/message/5864 Fixed errors that make test_most_recent_builds_states failed. Signed-off-by Alassane Yattara --- lib/toaster/tests/browser/test_most_recent_builds_states.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/toaster/tests/browser/test_most_recent_builds_states.py b/lib/toaster/tests/browser/test_most_recent_builds_states.py index a34a0928..949a9476 100644 --- a/lib/toaster/tests/browser/test_most_recent_builds_states.py +++ b/lib/toaster/tests/browser/test_most_recent_builds_states.py @@ -54,6 +54,7 @@ class TestMostRecentBuildsStates(SeleniumTestCase): build.outcome = Build.IN_PROGRESS build.recipes_to_parse = recipes_to_parse build.recipes_parsed = 0 + build.save() build_request.state = BuildRequest.REQ_INPROGRESS build_request.save() @@ -100,7 +101,7 @@ class TestMostRecentBuildsStates(SeleniumTestCase): 'Tasks starting', 'build should show "tasks starting" status') # first task finished; check tasks progress bar - task1.order = 1 + task1.outcome = Task.OUTCOME_SUCCESS task1.save() self.get(url) @@ -117,7 +118,7 @@ class TestMostRecentBuildsStates(SeleniumTestCase): element = Wait(self.driver).until(task_bar_updated, msg) # last task finished; check tasks progress bar updates - task2.order = 2 + task2.outcome = Task.OUTCOME_SUCCESS task2.save() self.get(url)