From e77afcc6999faca84224272c5774aed4886f217d Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 16:33:47 +0200 Subject: pcrlock: Fix ReadEventLog() interface definition --- src/shared/varlink-io.systemd.PCRLock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/varlink-io.systemd.PCRLock.c b/src/shared/varlink-io.systemd.PCRLock.c index 32270eaf9b..22c653228c 100644 --- a/src/shared/varlink-io.systemd.PCRLock.c +++ b/src/shared/varlink-io.systemd.PCRLock.c @@ -3,7 +3,8 @@ #include "varlink-io.systemd.PCRLock.h" static VARLINK_DEFINE_METHOD( - ReadEventLog); + ReadEventLog, + VARLINK_DEFINE_OUTPUT(record, VARLINK_OBJECT, 0)); static VARLINK_DEFINE_METHOD( MakePolicy, -- cgit v1.2.3 From 6063978f7510bb55f34551fbc3026438be1a0ba3 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 16:37:56 +0200 Subject: hostnamed: Add missing VSockCID varlink introspection data --- src/shared/varlink-io.systemd.Hostname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/varlink-io.systemd.Hostname.c b/src/shared/varlink-io.systemd.Hostname.c index 78058a1b2e..a6c6aec2a8 100644 --- a/src/shared/varlink-io.systemd.Hostname.c +++ b/src/shared/varlink-io.systemd.Hostname.c @@ -30,7 +30,8 @@ static VARLINK_DEFINE_METHOD( VARLINK_DEFINE_OUTPUT(FirmwareDate, VARLINK_INT, VARLINK_NULLABLE), VARLINK_DEFINE_OUTPUT(MachineID, VARLINK_STRING, 0), VARLINK_DEFINE_OUTPUT(BootID, VARLINK_STRING, 0), - VARLINK_DEFINE_OUTPUT(ProductUUID, VARLINK_STRING, VARLINK_NULLABLE)); + VARLINK_DEFINE_OUTPUT(ProductUUID, VARLINK_STRING, VARLINK_NULLABLE), + VARLINK_DEFINE_OUTPUT(VSockCID, VARLINK_INT, VARLINK_NULLABLE)); VARLINK_DEFINE_INTERFACE( io_systemd_Hostname, -- cgit v1.2.3 From f9fc97824ae9a9c4b1287e5e2251a3c3a65cb8ff Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 19:14:43 +0200 Subject: resolved: Add missing nullable annotation for ifindex in ResolvedRecord --- src/shared/varlink-io.systemd.Resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/varlink-io.systemd.Resolve.c b/src/shared/varlink-io.systemd.Resolve.c index a6c501ab01..71f4dc84c0 100644 --- a/src/shared/varlink-io.systemd.Resolve.c +++ b/src/shared/varlink-io.systemd.Resolve.c @@ -129,7 +129,7 @@ static VARLINK_DEFINE_METHOD( static VARLINK_DEFINE_STRUCT_TYPE( ResolvedRecord, - VARLINK_DEFINE_FIELD(ifindex, VARLINK_INT, 0), + VARLINK_DEFINE_FIELD(ifindex, VARLINK_INT, VARLINK_NULLABLE), VARLINK_DEFINE_FIELD_BY_TYPE(rr, ResourceRecord, VARLINK_NULLABLE), VARLINK_DEFINE_FIELD(raw, VARLINK_STRING, 0)); -- cgit v1.2.3 From 7c0ab0cdf2017cd6d1f6f66ecdc6adfce230c894 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 16:43:00 +0200 Subject: TEST-16-EXTEND-TIMEOUT: Convert to oneshot service To match the other service units more and allow adding more ExecStart= lines via dropins. --- test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service b/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service index 9e4675808d..3be8ef5059 100644 --- a/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service +++ b/test/TEST-16-EXTEND-TIMEOUT/TEST-16-EXTEND-TIMEOUT.service @@ -18,7 +18,5 @@ StopWhenUnneeded=yes [Service] ExecStartPre=rm -f /failed /testok -Type=exec -TimeoutStartSec=infinity -ExecStartPre=/usr/lib/systemd/tests/testdata/units/%N.sh -ExecStart=true +Type=oneshot +ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh -- cgit v1.2.3 From da3c6fc55363af2163b4d2613c9951bdaea24810 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 10:59:09 +0200 Subject: test: Run end.sh when running integration tests with mkosi --- test/integration-test-wrapper.py | 1 + test/units/end.service | 1 + test/units/end.sh | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py index 5b098a3e01..0c9649301c 100755 --- a/test/integration-test-wrapper.py +++ b/test/integration-test-wrapper.py @@ -71,6 +71,7 @@ def main(): [Service] StandardOutput=journal+console + ExecStart=/usr/lib/systemd/tests/testdata/units/end.sh """ ) diff --git a/test/units/end.service b/test/units/end.service index 50a68b9dd4..5455a8f33b 100644 --- a/test/units/end.service +++ b/test/units/end.service @@ -3,6 +3,7 @@ Description=End the test After=testsuite.target OnFailure=poweroff.target +OnSuccess=poweroff.target OnFailureJobMode=replace-irreversibly [Service] diff --git a/test/units/end.sh b/test/units/end.sh index cc1d7ee11e..a18c9473ea 100755 --- a/test/units/end.sh +++ b/test/units/end.sh @@ -13,5 +13,4 @@ set -o pipefail (! journalctl -q -o short-monotonic --grep "[F]ailed to parse serialized line" >>/failed) (! journalctl -q -o short-monotonic --grep "[F]ailed to (de)?serialize \w+" >>/failed) -systemctl poweroff --no-block exit 0 -- cgit v1.2.3