Merge branch 'master' of ssh://git.kernel.dk/data/git/fio
[fio.git] / profile.c
index 6a80dec2c7b7479cff92d24c47d2a0d9ac8fa691..5d0b866708559c1adb5253306c83fe4fc50e3fd8 100644 (file)
--- a/profile.c
+++ b/profile.c
@@ -30,7 +30,10 @@ int load_profile(const char *profile)
 
        ops = find_profile(profile);
        if (ops) {
-               ops->prep_cmd();
+               if (ops->prep_cmd()) {
+                       log_err("fio: profile %s prep failed\n", profile);
+                       return 1;
+               }
                add_job_opts(ops->cmdline, FIO_CLIENT_TYPE_CLI);
                return 0;
        }