Blame SOURCES/0021-Remove-backtick-operator-from-test-runner-script.patch

fc9b0e
From 5246d996e621274a2cc22282451bb60c10d59227 Mon Sep 17 00:00:00 2001
fc9b0e
Message-Id: <5246d996e621274a2cc22282451bb60c10d59227.1566225007.git.aquini@redhat.com>
fc9b0e
In-Reply-To: <d42f467a923dfc09309acb7a83b42e3285fbd8f4.1566225007.git.aquini@redhat.com>
fc9b0e
References: <d42f467a923dfc09309acb7a83b42e3285fbd8f4.1566225007.git.aquini@redhat.com>
fc9b0e
From: David Gibson <david@gibson.dropbear.id.au>
fc9b0e
Date: Sat, 17 Aug 2019 20:59:45 +1000
fc9b0e
Subject: [RHEL7 PATCH 21/31] Remove backtick operator from test runner script
fc9b0e
fc9b0e
The `` operator doesn't exist in Python3, so remove it to avoid future
fc9b0e
porting problems.
fc9b0e
fc9b0e
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
fc9b0e
Signed-off-by: Eric B Munson <eric@munsonfam.org>
fc9b0e
Signed-off-by: Rafael Aquini <aquini@redhat.com>
fc9b0e
---
fc9b0e
 tests/run_tests.py | 4 ++--
fc9b0e
 1 file changed, 2 insertions(+), 2 deletions(-)
fc9b0e
fc9b0e
diff --git a/tests/run_tests.py b/tests/run_tests.py
fc9b0e
index 47eb183..13a404a 100755
fc9b0e
--- a/tests/run_tests.py
fc9b0e
+++ b/tests/run_tests.py
fc9b0e
@@ -226,7 +226,7 @@ def clear_hpages():
fc9b0e
     cleaned up automatically and must be removed to free up the huge pages.
fc9b0e
     """
fc9b0e
     for mount in mounts:
fc9b0e
-        dir = mount + "/elflink-uid-" + `os.getuid()`
fc9b0e
+        dir = mount + "/elflink-uid-" + repr(os.getuid())
fc9b0e
         for root, dirs, files in os.walk(dir, topdown=False):
fc9b0e
             for name in files:
fc9b0e
                 os.remove(os.path.join(root, name))
fc9b0e
@@ -497,7 +497,7 @@ def setup_shm_sysctl(limit):
fc9b0e
         sysctls[f] = fh.read()
fc9b0e
         fh.close()
fc9b0e
         fh = open(f, "w")
fc9b0e
-        fh.write(`limit`)
fc9b0e
+        fh.write(repr(limit))
fc9b0e
         fh.close()
fc9b0e
     print("set shmmax limit to %s" % limit)
fc9b0e
     return sysctls
fc9b0e
-- 
fc9b0e
1.8.3.1
fc9b0e