mirror of
https://github.com/powerline/powerline.git
synced 2025-07-21 04:44:55 +02:00
Do not print the whole screen unles something went wrong
This commit is contained in:
parent
c43bd06bd6
commit
44273f299b
@ -138,6 +138,9 @@ def main():
|
|||||||
for key, text in expected_result
|
for key, text in expected_result
|
||||||
))
|
))
|
||||||
print(shesc_expected_result)
|
print(shesc_expected_result)
|
||||||
|
if result == expected_result:
|
||||||
|
return True
|
||||||
|
else:
|
||||||
print('Screen:')
|
print('Screen:')
|
||||||
screen = []
|
screen = []
|
||||||
for i in range(rows):
|
for i in range(rows):
|
||||||
@ -153,9 +156,6 @@ def main():
|
|||||||
))
|
))
|
||||||
for line in screen
|
for line in screen
|
||||||
))
|
))
|
||||||
if result == expected_result:
|
|
||||||
return True
|
|
||||||
else:
|
|
||||||
a = shesc_result.replace('\x1b', '\\e') + '\n'
|
a = shesc_result.replace('\x1b', '\\e') + '\n'
|
||||||
b = shesc_expected_result.replace('\x1b', '\\e') + '\n'
|
b = shesc_expected_result.replace('\x1b', '\\e') + '\n'
|
||||||
print('_' * 80)
|
print('_' * 80)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user