From nobody Wed May 06 21:16:48 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4g9p9F0dd8z6cqHh for ; Wed, 06 May 2026 21:16:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4g9p9D5GpDz4DxJ for ; Wed, 06 May 2026 21:16:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778102208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RH8tNjiaAlJr4M4SXOYy6i7IkgOOuTRu5N4DV6vUUkc=; b=NBFZmHFkIALBaMIpqeJrF0uDSgDGTJNH78Cq/Az5rLnTdO+KiET5iumYnckxEkJEejNLtR uRVwVBhCVfx0nHPNZy4UBk4owcx3mLixMj+appS96r7Th1bhLptGIrXQwNUK1Ajyic+1hV QtH6A89vdD8cJ/rRasLGGWGcmi+rLBaTLzVZuyGhTn061h0hoT3xh8spNZI33+av4fZike Y91IdnEOBbAO1FJPz17WSniUTj7W+IIyJdmYuNqLS8mlGyVPmxm0cpRyaXSDyrAzFraqK7 yG2OCBAjNbS6Kv1zZsNMZWbIo7+5Nw14OWbUA5UQPJ9Ns+0tQhl7lvY82FRmkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778102208; a=rsa-sha256; cv=none; b=nF5Na67nVun/OhJk0WHBIV6eMlMnTq1Gf7tmDTS0k5FK95Jmhg2ZabkTIHBv2Nv/cshf2C sr85faUt8jYQYFM7VpBR7KeJy0vJTFyDI7r67zb/R5c6M+u0DGvAvBaORZgqOzuCweG3Gj AvndAwT86nqKSIhoqqMym8G7yIp77MQ9XX/3aT2AxEl15ZH9OKRBxYOnJdV+OPnrG3jy9x 6QEXCgOih9ftLaoqkua2hs6yjQ6KbxKWsnZmh5z9W7sREkco1DMiMja7bkAgWaU7jZhoWH F8T9qOeFYfT898oE0Nx3S6DGHT9PwN1XSW422tJlk5q2OR4H56iUM5P6TeMwZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778102208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RH8tNjiaAlJr4M4SXOYy6i7IkgOOuTRu5N4DV6vUUkc=; b=Om/Ao1MNmR6lBkacyaGHtN2PwKkQI6tJ6Tc9FrP+pMVowib5CzeElJusXd1OApOz923Dbz cyHp6GCDG+F7WV36hOBB+f7zuZYFu0i/v0E1bKPyNX20D1P72U5s2QyoXxzyHHC+e6FGL3 apI0Hf2ICvbTtodP1v+xe8v8DU+uekTUtpiqddZ6PFYhSeBm7TGdF2nV6//hJ1cYfyzqqQ ZcLcz73Pra4vV7BfI1eo+6hzlyq8MCmUa/gA0YAN04l1OCchD+ie6OrzClI34yFWvz8STU KxbNfLpoW4DXgNkoin4hW83gBwegMFOzgy8e7AV8zItKQoUaQOecViXzDaxQMg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g9p9D4MgbzwbB for ; Wed, 06 May 2026 21:16:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2275d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 06 May 2026 21:16:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 2a86992ab501 - main - nuageninit: modify the test to show the issue fixed inc316ec259011 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2a86992ab5019b4997ccadf7427011ba44e33c97 Auto-Submitted: auto-generated Date: Wed, 06 May 2026 21:16:48 +0000 Message-Id: <69fbafc0.2275d.6d4eafb6@gitrepo.freebsd.org> The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=2a86992ab5019b4997ccadf7427011ba44e33c97 commit 2a86992ab5019b4997ccadf7427011ba44e33c97 Author: Baptiste Daroussin AuthorDate: 2026-05-06 20:45:50 +0000 Commit: Baptiste Daroussin CommitDate: 2026-05-06 21:16:37 +0000 nuageninit: modify the test to show the issue fixed inc316ec259011 Ensure the script used is invalid when parsed by libyaml which highlight the issue revealed in PR295062 while at here validate the mode of the file is properly changed PR: 295062 MFC After: 1 day --- libexec/nuageinit/tests/nuageinit.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libexec/nuageinit/tests/nuageinit.sh b/libexec/nuageinit/tests/nuageinit.sh index 3a01413f8487..1fd68d5a178e 100644 --- a/libexec/nuageinit/tests/nuageinit.sh +++ b/libexec/nuageinit/tests/nuageinit.sh @@ -76,10 +76,12 @@ nocloud_userdata_script_body() { mkdir -p media/nuageinit printf "instance-id: iid-local01\n" > "${PWD}"/media/nuageinit/meta-data - printf "#!/bin/sh\necho yeah\n" > "${PWD}"/media/nuageinit/user-data - chmod 755 "${PWD}"/media/nuageinit/user-data + # ensure this is an invalid when parsed with the yaml parser + printf "#!/bin/sh\n: ${test:-yes}\necho $test\n" > "${PWD}"/media/nuageinit/user-data + chmod 644 "${PWD}"/media/nuageinit/user-data atf_check -s exit:0 /usr/libexec/nuageinit "${PWD}"/media/nuageinit nocloud - atf_check -o inline:"#!/bin/sh\necho yeah\n" cat var/cache/nuageinit/user_data + atf_check test -x var/cache/nuageinit/user_data + atf_check -o inline:"#!/bin/sh\n: ${test:-yes}\necho $test\n" cat var/cache/nuageinit/user_data } nocloud_user_data_script_body()