summaryrefslogtreecommitdiffstats
path: root/utils/oci-runtime-tools/patches/050-validation-misc_props-run-a-process-the-bundle-contains.patch
blob: a4580b251a29229803fdf2d651658b6659b17a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 6e6c8e5b02c56e2d67a97155db80e1e44d54ec2d Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Tue, 20 Oct 2026 17:33:00 +0100
Subject: [PATCH] validation/misc_props: run a process the bundle contains

The unknown annotation case keeps the default process of the generator,
/runtimetest, but misc_props only unpacks the root filesystem into its
bundle and never copies runtimetest there. A runtime that reports a
failed entrypoint from start therefore fails the case, although the
annotation was accepted; one that only notices later passes it. Run
true like the unknown property case does, so that the case tests the
annotation alone.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 validation/misc_props/misc_props.go | 1 +
 1 file changed, 1 insertion(+)

--- a/validation/misc_props/misc_props.go
+++ b/validation/misc_props/misc_props.go
@@ -48,6 +48,7 @@ func main() {
 	if err != nil {
 		util.Fatal(err)
 	}
+	annotationConfig.SetProcessArgs([]string{"true"})
 	annotationConfig.AddAnnotation(fmt.Sprintf("org.%s", containerID), "")
 	invalidConfig, err := util.GetDefaultGenerator()
 	if err != nil {