From e1f823af6b50468ace5a91e605d0bb65402874bb Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 13 Aug 2024 14:29:45 -0600 Subject: [PATCH] suite: use owner value for user name Signed-off-by: Zack Cerza --- teuthology/suite/run.py | 4 +--- teuthology/suite/test/test_run_.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/teuthology/suite/run.py b/teuthology/suite/run.py index 4f425cada..7b397f808 100644 --- a/teuthology/suite/run.py +++ b/teuthology/suite/run.py @@ -45,10 +45,8 @@ def __init__(self, args): # We assume timestamp is a datetime.datetime object self.timestamp = self.args.timestamp or \ datetime.datetime.now().strftime(TIMESTAMP_FMT) - self.user = self.args.user or pwd.getpwuid(os.getuid()).pw_name - + self.user = self.args.owner or pwd.getpwuid(os.getuid()).pw_name self.name = self.make_run_name() - if self.args.ceph_repo: config.ceph_git_url = self.args.ceph_repo if self.args.suite_repo: diff --git a/teuthology/suite/test/test_run_.py b/teuthology/suite/test/test_run_.py index 51ce29a85..0fad56ddf 100644 --- a/teuthology/suite/test/test_run_.py +++ b/teuthology/suite/test/test_run_.py @@ -60,8 +60,8 @@ def test_name(self, m_fetch_repos): assert str(stamp) in name @patch('teuthology.suite.run.util.fetch_repos') - def test_name_user(self, m_fetch_repos): - self.args.user = 'USER' + def test_name_owner(self, m_fetch_repos): + self.args.owner = 'USER' with patch.object(run.Run, 'create_initial_config', return_value=run.JobConfig()): name = run.Run(self.args).name