Blame SOURCES/0025-tests-Use-modern-style-division-in-runner-script.patch

0dfa60
From b9b3e12c7be2c5a9ff67b3cdaad8679dbd1fe938 Mon Sep 17 00:00:00 2001
0dfa60
Message-Id: <b9b3e12c7be2c5a9ff67b3cdaad8679dbd1fe938.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:49 +1000
0dfa60
Subject: [RHEL7 PATCH 25/31] tests: Use modern style division in runner script
0dfa60
0dfa60
This is the current norm and will reduce changes for moving to Python3.
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 | 3 ++-
0dfa60
 1 file changed, 2 insertions(+), 1 deletion(-)
0dfa60
0dfa60
diff --git a/tests/run_tests.py b/tests/run_tests.py
0dfa60
index 79e0385..2847417 100755
0dfa60
--- a/tests/run_tests.py
0dfa60
+++ b/tests/run_tests.py
0dfa60
@@ -1,6 +1,7 @@
0dfa60
 #! /usr/bin/python2
0dfa60
 
0dfa60
 from __future__ import print_function
0dfa60
+from __future__ import division
0dfa60
 
0dfa60
 import subprocess
0dfa60
 import types
0dfa60
@@ -723,7 +724,7 @@ def stress_tests():
0dfa60
     # This is to catch off-by-ones or races in the kernel allocated that
0dfa60
     # can make allocating all hugepages a problem
0dfa60
     if nr_pages > 1:
0dfa60
-        do_shm_test(("shm-fork", repr(threads), repr(nr_pages / 2)), limit)
0dfa60
+        do_shm_test(("shm-fork", repr(threads), repr(nr_pages // 2)), limit)
0dfa60
     do_shm_test(("shm-fork", repr(threads), repr(nr_pages)), limit)
0dfa60
 
0dfa60
     do_shm_test(("shm-getraw", repr(nr_pages), "/dev/full"), limit)
0dfa60
-- 
0dfa60
1.8.3.1
0dfa60