]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/test-yaboot-rh8-ppc64.c
lib/process: Add process_get_stdout
[petitboot] / test / parser / test-yaboot-rh8-ppc64.c
index 97d0162697686976cff40ac8d288caf9669d21ac..3f6571ed2a4a6b51d7ddec4f8bfbb229f9b713c7 100644 (file)
@@ -5,9 +5,9 @@ void run_test(struct parser_test *test)
 {
        struct discover_boot_option *opt;
        struct discover_context *ctx;
-       struct discover_device *dev;
 
-       test_read_conf_file(test, "yaboot-rh8-ppc64.conf");
+       test_read_conf_file(test, "yaboot-rh8-ppc64.conf", "/yaboot.conf");
+
        test_run_parser(test, "yaboot");
 
        ctx = test->ctx;
@@ -16,15 +16,9 @@ void run_test(struct parser_test *test)
 
        opt = get_boot_option(ctx, 0);
 
-       check_unresolved_resource(opt->boot_image);
-       check_unresolved_resource(opt->initrd);
-
-       dev = test_create_device(ctx, "sdb1");
-       test_hotplug_device(test, dev);
-
-       check_resolved_local_resource(opt->boot_image, dev,
+       check_resolved_local_resource(opt->boot_image, test->ctx->device,
                        "/boot/vmlinuz-1.0-20121219-1");
-       check_resolved_local_resource(opt->initrd, dev,
+       check_resolved_local_resource(opt->initrd, test->ctx->device,
                        "/boot/initrd-1.0-20121219-1.img");
 
        check_args(opt, "root=/dev/sdb2 root=/dev/sdb2 ro crashkernel=auto "