diff options
author | yinkui <13965432176@163.com> | 2019-08-16 15:51:53 +0800 |
---|---|---|
committer | Bala Konda Reddy M <bmekala@redhat.com> | 2019-09-05 06:53:15 +0000 |
commit | f54c5000cd197dc596e7b499cca0f509426808e1 (patch) | |
tree | 9e0931c979f8626432df7c0e31d1e8e10622d28e /glustolibs-io/shared_files | |
parent | 5d5a3b5e1087a4642e0fd7bdf5693367e178c2f0 (diff) |
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>
Diffstat (limited to 'glustolibs-io/shared_files')
-rwxr-xr-x | glustolibs-io/shared_files/scripts/generate_io.py | 3 |
1 files changed, 1 insertions, 2 deletions
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, |