Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C0C1DE00D10; Tue, 23 Feb 2016 09:04:30 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.146.13 listed in list.dnswl.org] Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1BBD4E00D08 for ; Tue, 23 Feb 2016 09:04:26 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u1NH488Z016587 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Tue, 23 Feb 2016 09:04:08 -0800 (PST) Received: from ord-dlerner-d8.wrs.com (172.25.44.108) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Tue, 23 Feb 2016 09:04:07 -0800 From: Dave Lerner To: , , Date: Tue, 23 Feb 2016 11:03:58 -0600 Message-ID: <1456247039-16449-1-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [version 2 review-request] fix banner after customimage package add X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 17:04:30 -0000 Content-Type: text/plain Branch: toaster-next Defect: 9101 Summary: version2: toaster: fix banner after customimage package add v1 vs v2 change: Removed patch to views.py that will be addressed in a different manner for a different defect per review comments from Michael. Test Setup ---------- Build core-image-sato in order to capture package dependencies for tests. Create a new custom image based on core-image-minimal. Test with the pacakge atk which has 3 unadded dependencies: libpcre, glib-2.0, and libffi. Make certain that old orm_customimage_* tables are empty, no residuals from prior runs. Test cases and expected results ------------------------------- Verify that adding a package with unaddded dependencies will add the dependencies visually and in the build by: Click the 'add package' button for package atk. Click 'add package' in the popup modal dialog to add the 3 dependencies. Verify that all 4 packages, atk and 3 dependents, now show buttons with labels 'remove package' instead of 'add...' Build the image. Verify in the built image under packages that all 4 packages are added to the image using the right panel Packages and clicking each package. Verify that adding a package with either - a package with dependency list already added or in the image, - or without dependency list correctly shows the addition of 1 package in the banner. Remove atk, then add it back atk. Verify that banner says "You have added 1 package to myimage : atk" Note: only 1 package because dependencies were not removed in previous step.