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

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