From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Tue, 19 May 2015 12:12:13 +0900 Subject: [U-Boot] [PATCH v4 07/10] moveconfig: Output a list of failed boards In-Reply-To: <1431726052-6519-7-git-send-email-joe.hershberger@ni.com> References: <1431556137-8426-1-git-send-email-joe.hershberger@ni.com> <1431726052-6519-1-git-send-email-joe.hershberger@ni.com> <1431726052-6519-7-git-send-email-joe.hershberger@ni.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 2015-05-16 6:40 GMT+09:00 Joe Hershberger : > If boards fail, output that list to a file so that it can easily be > passed back into moveconfig.py using the -d option. > > Signed-off-by: Joe Hershberger > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > tools/moveconfig.py | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/moveconfig.py b/tools/moveconfig.py > index 15b0f2b..9e923da 100755 > --- a/tools/moveconfig.py > +++ b/tools/moveconfig.py > @@ -728,6 +728,10 @@ class Slots: > for line in msg: > print >> sys.stderr, color_text(self.options.color, > COLOR_LIGHT_RED, line) > + ffail = open('moveconfig.failed', 'w') > + for failed_board in failed_boards: > + ffail.write("%s\n" % failed_board) > + ffail.close() > > def move_config(config_attrs, options): > """Move config options to defconfig files. If you use with ... as ..., it will automatically close the file on exit. with open('moveconfig.failed', 'w') as f: for board in failed_boards: f.write(board + '\n') -- Best Regards Masahiro Yamada