Unverified Commit 89e18a19 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #156738 from mweinelt/hass-ping

parents a54ec715 d9ad2b40
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -278,6 +278,11 @@ in {
          "bluetooth_tracker"
          "bluetooth_le_tracker"
        ];
        componentsUsingPing = [
          # Components that require the capset syscall for the ping wrapper
          "ping"
          "wake_on_lan"
        ];
        componentsUsingSerialDevices = [
          # Components that require access to serial devices (/dev/tty*)
          # List generated from home-assistant documentation:
@@ -382,6 +387,8 @@ in {
        SystemCallFilter = [
          "@system-service"
          "~@privileged"
        ] ++ optionals (any useComponent componentsUsingPing) [
          "capset"
        ];
        UMask = "0077";
      };
+10 −0
Original line number Diff line number Diff line
@@ -49,6 +49,12 @@ in {
          payload_on = "let_there_be_light";
          payload_off = "off";
        }];
        wake_on_lan = {};
        switch = [{
          platform = "wake_on_lan";
          mac = "00:11:22:33:44:55";
          host = "127.0.0.1";
        }];
        # tests component-based capability assignment (CAP_NET_BIND_SERVICE)
        emulated_hue = {
          host_ip = "127.0.0.1";
@@ -99,6 +105,10 @@ in {
        print("\n### home-assistant.log ###\n")
        print(output_log + "\n")

    # wait for home-assistant to fully boot
    hass.sleep(30)
    hass.wait_for_unit("home-assistant.service")

    with subtest("Check that no errors were logged"):
        assert "ERROR" not in output_log