Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 57005E00CC9; Fri, 19 Feb 2016 14:23:23 -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.1.11 listed in list.dnswl.org] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2B3DEE00C6B for ; Fri, 19 Feb 2016 14:23:18 -0800 (PST) Received: from ALA-HCB.corp.ad.wrs.com (ala-hcb.corp.ad.wrs.com [147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id u1JMNGgJ007057 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 19 Feb 2016 14:23:17 -0800 (PST) Received: from ord-dlerner-d8.corp.ad.wrs.com (128.224.20.33) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.248.2; Fri, 19 Feb 2016 14:23:16 -0800 From: Dave Lerner To: , , Date: Fri, 19 Feb 2016 16:23:06 -0600 Message-ID: <1455920587-25985-1-git-send-email-dave.lerner@windriver.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [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: Fri, 19 Feb 2016 22:23:23 -0000 Content-Type: text/plain Branch: toaster-next Defect: 9101 Summary: toaster: fix banner after customimage package add 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 priof 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 - dependencies already added or in the base image, - witout dependencies 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. Verify removing the 'added' package and each of the dependencies removes those packages visually and in the build. Click 'remove package' for packages and in order: atk, glib-2.0, libffi, libpcre. Build the image. Verify that the packages are not in the image. Verify fix of the defect symptom that adding dependent package, then removing dependent package and dependencies, then adding it back correctly shows the dependencies as added, ie, with "remove package" button.