]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: use "H" as the hostname
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 4 May 2021 11:54:33 +0000 (13:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 May 2021 09:04:59 +0000 (11:04 +0200)
"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.

test/test-functions
test/units/testsuite-48.sh

index 459baea34a697017b1f9432def77a116d5339de9..fdab3b9d410b48592ba357a4b05b80e43a3c2451 100644 (file)
@@ -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
index 0ce8e9c067b637f19839e50dcc733f6cd6eea8e7..147f6fa54fa8669da3aca629bf4bbbefe8c01ea2 100755 (executable)
@@ -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 <<EOF