From 3db22a7aec2bc3e6a5f896b57abfffc46cc677e5 Mon Sep 17 00:00:00 2001 From: Tom Hromatka Date: Fri, 27 Jan 2023 13:28:10 -0700 Subject: [PATCH] ftests: Change util get uid/gid functions to return an int get_file_owner_uid() and get_file_owner_gid() previously returned the owning uid and gid as strings, respectively. Change them to return the uid and gid as ints. Signed-off-by: Tom Hromatka Reviewed-by: Kamalesh Babulal --- tests/ftests/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ftests/utils.py b/tests/ftests/utils.py index 61e4df6e..a0fb6ee4 100644 --- a/tests/ftests/utils.py +++ b/tests/ftests/utils.py @@ -23,9 +23,9 @@ def get_file_owner_uid(config, filename): cmd.append(filename) if config.args.container: - return config.container.run(cmd, shell_bool=True) + return int(config.container.run(cmd, shell_bool=True)) else: - return Run.run(cmd, shell_bool=True) + return int(Run.run(cmd, shell_bool=True)) def get_file_owner_username(config, filename): @@ -49,9 +49,9 @@ def get_file_owner_gid(config, filename): cmd.append(filename) if config.args.container: - return config.container.run(cmd, shell_bool=True) + return int(config.container.run(cmd, shell_bool=True)) else: - return Run.run(cmd, shell_bool=True) + return int(Run.run(cmd, shell_bool=True)) def get_file_owner_group_name(config, filename): -- 2.47.2