<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux-stable.git/scripts/sbom/tests, branch master</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/atom?h=master</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/'/>
<updated>2026-07-31T12:19:36+00:00</updated>
<entry>
<title>scripts/sbom: catch ValueError from malformed shell quoting</title>
<updated>2026-07-31T12:19:36+00:00</updated>
<author>
<name>Carlos Sampaio Ribeiro</name>
<email>otakurack@gmail.com</email>
</author>
<published>2026-07-19T08:18:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=c16ce856e422e73a54c41131e0332de1afe09b8b'/>
<id>urn:sha1:c16ce856e422e73a54c41131e0332de1afe09b8b</id>
<content type='text'>
parse_inputs_from_commands() only caught CmdParsingError and IndexError
when dispatching to command parsers, but several parsers call
shlex.split() internally, which raises ValueError on malformed shell
quoting (e.g. an unterminated quote). This exception was not caught,
so a single malformed build command would abort SBOM generation
entirely, even with fail_on_unknown_build_command=False, defeating the
purpose of tolerant mode.

The issue was found while reviewing the exception handling around the
saved-command parser after running its existing tests. It can be
reproduced with:

    parse_inputs_from_commands('gcc "unterminated',
                               fail_on_unknown_build_command=False)

Catch ValueError alongside CmdParsingError and IndexError so such
commands are logged as a warning/error and skipped instead of aborting
the whole run.

Add tests covering malformed shell quoting and a missing positional
argument.

Signed-off-by: Carlos Sampaio Ribeiro &lt;otakurack@gmail.com&gt;
Link: https://patch.msgid.link/20260719081859.1001-1-otakurack@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/sbom: add unit tests for SPDX-License-Identifier parsing</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:21:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=880bae5f1269b4d81bb2a254963e84377cd37bc1'/>
<id>urn:sha1:880bae5f1269b4d81bb2a254963e84377cd37bc1</id>
<content type='text'>
Verify that SPDX-License-Identifier headers at the top of source files
are parsed correctly.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/sbom: add unit tests for command parsers</title>
<updated>2026-05-22T11:14:41+00:00</updated>
<author>
<name>Luis Augenstein</name>
<email>luis.augenstein@tngtech.com</email>
</author>
<published>2026-05-18T06:21:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=0de18f407c8169b51a525e208c0cd690df2d2b1a'/>
<id>urn:sha1:0de18f407c8169b51a525e208c0cd690df2d2b1a</id>
<content type='text'>
Add unit tests to verify that command parsers correctly extract
input files from build commands.

Assisted-by: Cursor:claude-sonnet-4-5
Assisted-by: OpenCode:GLM-4-7
Co-developed-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Maximilian Huber &lt;maximilian.huber@tngtech.com&gt;
Signed-off-by: Luis Augenstein &lt;luis.augenstein@tngtech.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
</feed>
