test: Fix host name lookup (#473)
Our code reads /etc/hostname. Do the same in the test, as the runtime sethostname(2) (set by hostnamed) and static host name may be different.
This commit is contained in:
parent
37b2ee5056
commit
cfaa74f761
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ class TestApplication(testlib.MachineCase):
|
||||||
b.wait_text(".pf-c-card__title", "Starter Kit")
|
b.wait_text(".pf-c-card__title", "Starter Kit")
|
||||||
|
|
||||||
# verify expected host name
|
# verify expected host name
|
||||||
hostname = m.execute("hostname").strip()
|
hostname = m.execute("cat /etc/hostname").strip()
|
||||||
b.wait_in_text(".pf-c-alert__title", "Running on " + hostname)
|
b.wait_in_text(".pf-c-alert__title", "Running on " + hostname)
|
||||||
|
|
||||||
# change current hostname
|
# change current hostname
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue