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