]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: fix dirty rootfs error message
authorDawid Osuchowski <linux@osuchow.ski>
Sat, 26 Apr 2025 19:58:57 +0000 (21:58 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 5 May 2025 21:06:47 +0000 (16:06 -0500)
Running a test binary directly on a dirty rootfs results in the
following error message:

        ERR: rootfs is dirty, please run
'meson compile testsuite/stamp-rootfs' before running this test

Running the command specified by the error message fails:

        $ meson compile testsuite/stamp-rootfs
        ERROR: Can't invoke target `testsuite/stamp-rootfs`:
target not found

Fix the error message to display the proper target.

Fixes: b85b2a0 ("testsuite: update "make rootfs" error message")
Signed-off-by: Dawid Osuchowski <linux@osuchow.ski>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/testsuite.c

index 3a55e2f2f30530ff22b0ca7d0b5e6bf8f3652d7b..0407a7b5d87e3709db9b5784e67057530896a2d9 100644 (file)
@@ -261,7 +261,7 @@ static inline int test_run_child(const struct test *t, int fdout[2], int fderr[2
                }
 
                if (stat_mstamp(&rootfsst) > stat_mstamp(&stampst)) {
-                       ERR("rootfs %s is dirty, please run 'meson compile testsuite/stamp-rootfs' before running this test\n",
+                       ERR("rootfs %s is dirty, please run 'meson compile testsuite/create-rootfs' before running this test\n",
                            rootfs);
                        exit(EXIT_FAILURE);
                }