util-linux: Create a dummy /etc/fstab to satisfy two tests

This commit is contained in:
Xi Ruoyao 2024-04-08 16:10:03 +08:00
parent 6a75210c6d
commit 9bfd203fad
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -93,7 +93,14 @@
<screen><userinput remap="make">make</userinput></screen>
<para>If desired, run the test suite as a non-&root; user:</para>
<!-- To editors:
Two tests need a /etc/fstab file. They are skipped if the host
distro isn't using systemd as the init system, so don't remove
the creation of /etc/fstab unless you've tested it with such a
host distro (for example LFS systemd or Debian). -->
<para>If desired, create a dummy <filename>/etc/fstab</filename> file
to satisfy two tests and run the test suite as a non-&root;
user:</para>
<warning><para>Running the test suite as the
<systemitem class="username">root</systemitem> user can be harmful to
@ -106,7 +113,8 @@
<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
</warning>
<screen><userinput remap="test">chown -R tester .
<screen><userinput remap="test">touch /etc/fstab
chown -R tester .
su tester -c "make -k check"</userinput></screen>
<para>