dhclient: fix pcp:pcp cleanup failure

If isc-dhcp44-server is not installed (as is the case the project's CI
servers) we don't create ngctl.shutdown, causing the 'rm' to fail.
That in turn causes the cleanup function to return non-zero, which
causes kyua to consider the test failed.

Use 'rm -f' instead, so we don't error even if the file doesn't exist.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2022-06-17 09:01:05 +02:00
parent fc2e4f15a9
commit 5575d5a548
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ pcp_cleanup()
for i in $(cat ngctl.shutdown); do
ngctl shutdown ${i}:
done
rm ngctl.shutdown
rm -f ngctl.shutdown
}
atf_init_test_cases()