[PATCH] mcstrans: Improve mlstrans-test output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux