test/parser: Update test cases as per new parser requesting conf files
[petitboot] / test / parser / test-grub2-save-env.c
index 7a2938f2d4323bee140223d9e246665fc79015c0..826963ee22a677be7c2c6befbc10dacb9bb1abb9 100644 (file)
@@ -86,7 +86,9 @@ static void run_env_test(struct parser_test *test, struct env_test *envtest)
        test_add_file_data(test, test->ctx->device, "/boot/grub/grubenv",
                        env_before, strlen(env_before));
 
-       __test_read_conf_data(test, envtest->script, strlen(envtest->script));
+       __test_read_conf_data(test, "/boot/grub2/grub.cfg", envtest->script,
+                       strlen(envtest->script));
+
        test_run_parser(test, "grub2");
 
        check_file_contents(test, test->ctx->device, "/boot/grub/grubenv",