mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-21 12:06:51 +00:00
mcstrans: Improve mlstrans-test output
Fixes: trans: a🅱️c:s9 -> a🅱️c:TOP SECRET != a🅱️c:TOP SECRET SUCCESS untrans: a🅱️c:T O P S E C R E T -> a🅱️c:s9 != a🅱️c:s9 SUCCESS Signed-off-by: Petr Lautrbach <plautrba@redhat.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
d0f9a58920
commit
cedcbaa824
@ -15,7 +15,7 @@ def untrans(trans, val):
|
||||
errors += 1
|
||||
else:
|
||||
if verbose:
|
||||
print("untrans: %s -> %s != %s SUCCESS" % (trans, raw, val))
|
||||
print("untrans: '%s' -> '%s' == '%s' SUCCESS" % (trans, raw, val))
|
||||
|
||||
|
||||
def trans(raw, val):
|
||||
@ -26,7 +26,7 @@ def trans(raw, val):
|
||||
errors += 1
|
||||
else:
|
||||
if verbose:
|
||||
print("trans: %s -> %s != %s SUCCESS" % (raw, trans, val))
|
||||
print("trans: '%s' -> '%s' == '%s' SUCCESS" % (raw, trans, val))
|
||||
|
||||
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "-v":
|
||||
|
Loading…
Reference in New Issue
Block a user