fix ping for arch

pull/87/head
Who? 2025-02-05 02:28:46 +10:00 committed by GitHub
commit ae648cd358
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -396,8 +396,8 @@ class TestMod(loader.Module):
ping_hint=(
(self.config["hint"]) if random.choice([0, 0, 1]) == 1 else ""
),
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
hostname=lib_platform.node(),
user=getpass.getuser(),
),
)