1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

dist/tools: always print how to disable programmer wrapper

If the help is only printed on failure, if the script does not detect failure
and programming still fails, the user has no idea how to get the full information.

Always print help on how to disable this feature.
This commit is contained in:
Benjamin Valentin 2021-03-02 10:42:39 +01:00
parent d6c4cd0a26
commit 6a705d95b3

View File

@ -33,6 +33,10 @@ class Programmer:
def spin(self, process):
"""Print a spinning icon while programmer process is running."""
print(
"For full programmer output add PROGRAMMER_QUIET=0 or "
"QUIET=0 to the make command line."
)
while process.poll() is None:
for index in range(len(SPIN)):
sys.stdout.write(
@ -59,11 +63,6 @@ class Programmer:
# subprocess failed
if process.returncode != 0:
print(process.stdout.read().decode())
else:
print(
"(for full programmer output add PROGRAMMER_QUIET=0 or "
"QUIET=0 to the make command line)"
)
def run(self):
"""Run the programmer in a background process."""