From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 02/12] tests: py: disable main_signon check for printenv cmd
Date: Wed, 18 May 2016 10:37:05 -0600 [thread overview]
Message-ID: <573C9A31.2060505@wwwdotorg.org> (raw)
In-Reply-To: <1463581128-22188-3-git-send-email-hs@denx.de>
On 05/18/2016 08:18 AM, Heiko Schocher wrote:
> if CONFIG_VERSION_VARIABLE is set, the U-Boot environment
> contains a "vers" variable with the current U-Boot version
> string. If now "printenv" is called, test/py fails as it
> detects the main_sign string, which is in this case correct.
>
> So check only the main_sign as an error, if CONFIG_VERSION_VARIABLE
> is not set.
Interesting. I wonder if it would be possible to instead adjust the
regex so it didn't match the printenv output; that way if printenv
crashed and the system rebooted, the test would still catch it. Still,
the current patch is probably simpler and the window for issues small
enough that I think this is fine.
> diff --git a/test/py/tests/test_env.py b/test/py/tests/test_env.py
> + if self.u_boot_console.config.buildconfig['config_version_variable'] == 'y':
I think that should instead be:
> if self.u_boot_console.config.buildconfig.get('config_version_variable', 'n') == 'y':
That way, if there's no value for CONFIG_VERSION_VARIABLE at all, the
code will still work, rather than raising an exception when the lookup
fails.
With that change,
Acked-by: Stephen Warren <swarren@nvidia.com>
next prev parent reply other threads:[~2016-05-18 16:37 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-18 14:18 [U-Boot] [PATCH v1 00/12] am335x: add support for the am335x based bosch shc board Heiko Schocher
2016-05-18 14:18 ` [U-Boot] [PATCH v1 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option Heiko Schocher
2016-05-18 16:29 ` Stephen Warren
2016-05-19 2:59 ` Viresh Kumar
2016-05-19 5:22 ` Heiko Schocher
2016-05-19 5:46 ` Viresh Kumar
2016-05-20 13:09 ` Tom Rini
2016-05-20 13:19 ` Daniel Schwierzeck
2016-05-20 15:24 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 02/12] tests: py: disable main_signon check for printenv cmd Heiko Schocher
2016-05-18 16:37 ` Stephen Warren [this message]
2016-06-16 17:09 ` Stephen Warren
2016-05-18 14:18 ` [U-Boot] [PATCH v1 03/12] power, tps65217: add some defines Heiko Schocher
2016-05-20 19:48 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 04/12] arm, am335x: add some missing GPIO register definitions Heiko Schocher
2016-05-20 19:48 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 05/12] am335x: add some missing CM_CLKMODE_DPLL_SSC macros Heiko Schocher
2016-05-20 19:48 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 06/12] arm, am335x: Enable Spread Spectrum for the MPU Heiko Schocher
2016-05-20 19:48 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 07/12] bootstage: call show_boot_progress also in SPL Heiko Schocher
2016-05-19 4:02 ` Simon Glass
2016-05-18 14:18 ` [U-Boot] [PATCH v1 08/12] mmc: revert mmc: Handle switch error status bit in MMC card status Heiko Schocher
2016-05-18 14:18 ` [U-Boot] [PATCH v1 09/12] mmc: omap_hsmmc: enable 8bit interface for eMMC for AM33xx Heiko Schocher
2016-05-20 19:49 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 10/12] armv7: omap-common: make SPL board_mmc_init() weak Heiko Schocher
2016-05-18 14:18 ` [U-Boot] [PATCH v1 11/12] doc, spl, am335x: update am335x-network Heiko Schocher
2016-05-20 19:49 ` Tom Rini
2016-05-18 14:18 ` [U-Boot] [PATCH v1 12/12] am335x, shc: add support for the am335x based bosch shc board Heiko Schocher
2016-05-20 19:49 ` Tom Rini
2016-05-23 12:56 ` Heiko Schocher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=573C9A31.2060505@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox