From: Tom Hromatka Date: Fri, 27 Jan 2023 20:28:10 +0000 (-0700) Subject: ftests: Change util get uid/gid functions to return an int X-Git-Tag: v3.1.0~235 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3db22a7aec2bc3e6a5f896b57abfffc46cc677e5;p=thirdparty%2Flibcgroup.git 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 --- 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):