]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite: fixup argument handling
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Jun 2025 16:00:42 +0000 (17:00 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 8 Jul 2025 12:17:14 +0000 (07:17 -0500)
commitdd77977c2997826cad72221237540ee21c47ffbf
treebd125e26a1d924647c028c13c737eeb962faca5b
parentffc165c44bda24891598de4d7dccbd7ddbf9f8bd
testsuite: fixup argument handling

Currently we can pass any number of tests as arguments - be that in
oneshot mode or not.

At the same time, oneshot requires only one test while normal mode can
have up-to one.

Fix that up and as a bonus we no longer need the exit() in
test_run_spawned() \o/

While in here, add a few comments around our arg/argc handling.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/376
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/testsuite.c
testsuite/testsuite.h