From: Tom Rini Date: Fri, 20 Jul 2018 18:35:59 -0400 Subject: [U-Boot] [U-Boot, v6, 6/6] test/py: add test for whitelist of variables while importing environment In-Reply-To: <848a7c1ec018a027a33664b806eae3232ab6aaf8.1531156332.git-series.quentin.schulz@bootlin.com> References: <848a7c1ec018a027a33664b806eae3232ab6aaf8.1531156332.git-series.quentin.schulz@bootlin.com> Message-ID: <20180720223559.GP11755@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Jul 09, 2018 at 07:16:30PM +0200, Quentin Schulz wrote: > This tests that the importing of an environment with a specified > whitelist works as intended. > > If there are variables passed as parameter to the env import command, > those only should be imported in the current environment. > > For each variable passed as parameter, if > - foo is bar in current env and bar2 in exported env, after importing > exported env, foo shall be bar2, > - foo does not exist in current env and foo is bar2 in exported env, > after importing exported env, foo shall be bar2, > - foo is bar in current env and does not exist in exported env (but is > passed as parameter), after importing exported env, foo shall be empty > ONLY if the -d option is passed to env import, otherwise foo shall be > bar, > > Any variable not passed as parameter should be left untouched. > > Two other tests are made to test that size cannot be '-' if the checksum > protection is enabled. > > Signed-off-by: Quentin Schulz > Reviewed-by: Simon Glass > Reviewed-by: Stephen Warren > Tested-by: Stephen Warren Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: