mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
scripts: Actually print filename of offending file
The error message printed by scripts/group-qemu-caps.py and scripts/test-wrap-argv.py doesn't actually print the filename of the offending file: Incorrect line wrapping in $file Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
037ea5d10c
commit
b724b7d197
@ -78,8 +78,8 @@ def regroup_caps(check, filename, start_regex, end_regex,
|
|||||||
stdin=subprocess.PIPE)
|
stdin=subprocess.PIPE)
|
||||||
diff.communicate(input=new.encode('utf-8'))
|
diff.communicate(input=new.encode('utf-8'))
|
||||||
|
|
||||||
print("Incorrect line wrapping in $file",
|
print("Incorrect line wrapping in '%s'" %
|
||||||
file=sys.stderr)
|
filename, file=sys.stderr)
|
||||||
print("Use group-qemu-caps.py to generate data files",
|
print("Use group-qemu-caps.py to generate data files",
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
return False
|
return False
|
||||||
|
@ -137,8 +137,8 @@ def rewrap(filename, in_place, check):
|
|||||||
stdin=subprocess.PIPE)
|
stdin=subprocess.PIPE)
|
||||||
diff.communicate(input=new.encode('utf-8'))
|
diff.communicate(input=new.encode('utf-8'))
|
||||||
|
|
||||||
print("Incorrect line wrapping in $file",
|
print("Incorrect line wrapping in '%s'" %
|
||||||
file=sys.stderr)
|
filename, file=sys.stderr)
|
||||||
print("Use test-wrap-argv.py to wrap test data files",
|
print("Use test-wrap-argv.py to wrap test data files",
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user