From: Zbigniew Jędrzejewski-Szmek Date: Tue, 4 May 2021 11:54:33 +0000 (+0200) Subject: tests: use "H" as the hostname X-Git-Tag: v249-rc1~303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea0d33e2af3acfc629093e0cd6465d96760f6418;p=thirdparty%2Fsystemd.git tests: use "H" as the hostname "systemd-testsuite" gets in the way when grepping for "testsuite-*.sh". Also, the name doesn't matter for anything, so let's just use something very short to save space. --- diff --git a/test/test-functions b/test/test-functions index 459baea34a6..fdab3b9d410 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1309,7 +1309,7 @@ install_config_files() { : >"$initdir/etc/resolv.conf" # set the hostname - echo systemd-testsuite >"$initdir/etc/hostname" + echo 'H' >"$initdir/etc/hostname" # let's set up just one image with the traditional verbose output if [ "${IMAGE_NAME:?}" != "basic" ]; then diff --git a/test/units/testsuite-48.sh b/test/units/testsuite-48.sh index 0ce8e9c067b..147f6fa54fa 100755 --- a/test/units/testsuite-48.sh +++ b/test/units/testsuite-48.sh @@ -16,11 +16,11 @@ systemctl start testservice-48.target # granularity of one second, which means the manager's unit cache won't be # marked as dirty when writing the unit file, unless we wait at least a full # second after the previous daemon-reload. -# May 07 23:12:20 systemd-testsuite testsuite-48.sh[30]: + cat -# May 07 23:12:20 systemd-testsuite testsuite-48.sh[30]: + ls -l --full-time /etc/systemd/system/testservice-48.service -# May 07 23:12:20 systemd-testsuite testsuite-48.sh[52]: -rw-r--r-- 1 root root 50 2020-05-07 23:12:20.000000000 +0100 / -# May 07 23:12:20 systemd-testsuite testsuite-48.sh[30]: + stat -f --format=%t /etc/systemd/system/testservice-48.servic -# May 07 23:12:20 systemd-testsuite testsuite-48.sh[53]: ef53 +# May 07 23:12:20 H testsuite-48.sh[30]: + cat +# May 07 23:12:20 H testsuite-48.sh[30]: + ls -l --full-time /etc/systemd/system/testservice-48.service +# May 07 23:12:20 H testsuite-48.sh[52]: -rw-r--r-- 1 root root 50 2020-05-07 23:12:20.000000000 +0100 / +# May 07 23:12:20 H testsuite-48.sh[30]: + stat -f --format=%t /etc/systemd/system/testservice-48.servic +# May 07 23:12:20 H testsuite-48.sh[53]: ef53 sleep 3.1 cat >/run/systemd/system/testservice-48.service <