diff options
author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-04-01 09:32:34 +0300 |
---|---|---|
committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2019-04-01 14:52:01 +0300 |
commit | 93cbe569582626793f79e5626970703059f88933 (patch) | |
tree | 8cb706c5a9c38e853424a1019aab1dfc089e2094 /runner/executor.c | |
parent | 7cadc6105b00f8d8ef166929118a95ce69221603 (diff) |
runner: Refactor metadata parsing
To aid testing function parsing metadata.txt is split into outer helper
that operates on dirfd and inner function that operates on FILE*.
This allows us to test the parsing using fmemopen(), limiting the amount
of necessary boilerplate.
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'runner/executor.c')
-rw-r--r-- | runner/executor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runner/executor.c b/runner/executor.c index a40e2dd1..0e91b7ab 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -1112,7 +1112,7 @@ bool initialize_execute_state_from_resume(int dirfd, memset(state, 0, sizeof(*state)); state->resuming = true; - if (!read_settings(settings, dirfd) || + if (!read_settings_from_dir(settings, dirfd) || !read_job_list(list, dirfd)) { close(dirfd); return false; |