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

Merge pull request #16122 from benpicco/programmer_wrapper-info

dist/tools/programmer: always print how to disable programmer wrapper
This commit is contained in:
benpicco 2021-03-03 10:39:49 +01:00 committed by GitHub
commit e4aabc7dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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."""