Update test.py

pull/35/head
Plovchikdeval 2024-12-16 09:31:15 +05:00 committed by GitHub
parent 6b2eef8fc1
commit a68391521d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -370,7 +370,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('utf-8'),
hostname=subprocess.run(['hostname'], stdout=subprocess.PIPE).stdout.decode().strip(),
user=subprocess.run(['whoami'], stdout=subprocess.PIPE).stdout.decode().strip(),
),
)