]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-dhcp-server: run a test earlier which does not require privilege
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 27 Jan 2022 07:07:48 +0000 (16:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Feb 2022 02:56:22 +0000 (11:56 +0900)
src/libsystemd-network/test-dhcp-server.c

index f2d0158a796ec9864e30fa296730d3c69e3fa12a..394a8e401dc712381a1940f78ebe68019f3dbaec 100644 (file)
@@ -235,6 +235,8 @@ int main(int argc, char *argv[]) {
 
         test_setup_logging(LOG_DEBUG);
 
+        test_client_id_hash();
+
         r = test_basic(true);
         if (r < 0)
                 return log_tests_skipped_errno(r, "cannot start dhcp server(bound to interface)");
@@ -244,7 +246,6 @@ int main(int argc, char *argv[]) {
                 return log_tests_skipped_errno(r, "cannot start dhcp server(non-bound to interface)");
 
         test_message_handler();
-        test_client_id_hash();
 
         return 0;
 }