All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mcstrans: Improve mlstrans-test output
@ 2021-08-06  8:33 Petr Lautrbach
  2021-08-06 20:06 ` James Carter
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Lautrbach @ 2021-08-06  8:33 UTC (permalink / raw)
  To: selinux; +Cc: Petr Lautrbach

Fixes:
    trans: a:b:c:s9 -> a:b:c:TOP SECRET != a:b:c:TOP SECRET SUCCESS
    untrans: a:b:c:T O P S E C R E T -> a:b:c:s9 != a:b:c:s9 SUCCESS

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 mcstrans/share/util/mlstrans-test | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mcstrans/share/util/mlstrans-test b/mcstrans/share/util/mlstrans-test
index 085fa82ddd25..df34e0e67c84 100644
--- a/mcstrans/share/util/mlstrans-test
+++ b/mcstrans/share/util/mlstrans-test
@@ -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":
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-10 16:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06  8:33 [PATCH] mcstrans: Improve mlstrans-test output Petr Lautrbach
2021-08-06 20:06 ` James Carter
2021-08-10 16:31   ` James Carter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.