diff options
author | Simon Glass <sjg@chromium.org> | 2023-09-23 13:44:06 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-10-04 09:25:21 -0600 |
commit | 5aba58cf3bc4c1a094416b1ed5f2e5e9790b6f61 (patch) | |
tree | b63b7d81c0a3598f76528bdd3a322d90d04a46ad | |
parent | f297ba33e99324b30355a5e935717936fe527927 (diff) | |
download | u-boot-5aba58cf3bc4c1a094416b1ed5f2e5e9790b6f61.zip u-boot-5aba58cf3bc4c1a094416b1ed5f2e5e9790b6f61.tar.gz u-boot-5aba58cf3bc4c1a094416b1ed5f2e5e9790b6f61.tar.bz2 |
moveconfig: Only show output when there is a reason
There is no point in listing a board if everything went well. It makes it
harder to see the failures, particularly on a fast machine.
Suppress output unless something actually happened.
Drop the 'Syncing by savedefconfig' since this is selected by the -s and
is the same for all boards in this mode.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rwxr-xr-x | tools/moveconfig.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py index 727a5d6..568386f 100755 --- a/tools/moveconfig.py +++ b/tools/moveconfig.py @@ -551,7 +551,6 @@ class Slot: if not self.args.force_sync: self.finish(True) return - self.log += 'Syncing by savedefconfig (forced by option)...\n' cmd = list(self.make_cmd) cmd.append('savedefconfig') @@ -581,12 +580,13 @@ class Slot: successfully, or False when it fails. """ # output at least 30 characters to hide the "* defconfigs out of *". - log = self.defconfig.ljust(30) + '\n' + if self.log: + log = self.defconfig.ljust(30) + '\n' - log += '\n'.join([ ' ' + s for s in self.log.split('\n') ]) - # Some threads are running in parallel. - # Print log atomically to not mix up logs from different threads. - print(log, file=(sys.stdout if success else sys.stderr)) + log += '\n'.join([ ' ' + s for s in self.log.split('\n') ]) + # Some threads are running in parallel. + # Print log atomically to not mix up logs from different threads. + print(log, file=(sys.stdout if success else sys.stderr)) if not success: if self.args.exit_on_error: |