From f54c5000cd197dc596e7b499cca0f509426808e1 Mon Sep 17 00:00:00 2001 From: yinkui <13965432176@163.com> Date: Fri, 16 Aug 2019 15:51:53 +0800 Subject: glusto-test:generate_io.py code not correct According to generate_io.py the function "def check_if_percent_to_fill_or_timeout_is_met" will never return false, the "flag" empty or not empty also return true. Change-Id: I2d70b2987112bd3a6404e5f13f0c6d320d01e7fc Signed-off-by: yinkui <13965432176@163.com> --- glustolibs-io/shared_files/scripts/generate_io.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'glustolibs-io') diff --git a/glustolibs-io/shared_files/scripts/generate_io.py b/glustolibs-io/shared_files/scripts/generate_io.py index d07bda7b0..0f2f2a3ea 100755 --- a/glustolibs-io/shared_files/scripts/generate_io.py +++ b/glustolibs-io/shared_files/scripts/generate_io.py @@ -169,8 +169,7 @@ def check_if_percent_to_fill_or_timeout_is_met(dirname, percent_to_fill, else: print("Timeout %s seconds reached before filling directory with " "given percentage %s" % (str(timeout), str(percent_to_fill))) - return True - return False + return False def run_check_if_percent_to_fill_or_timeout_is_met(dirname, -- cgit