summaryrefslogtreecommitdiffstats
path: root/test/parser/parser-test.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-19 14:00:53 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-04-29 14:43:04 +1000
commit5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161 (patch)
tree2ad50697e3380c2c14f72522fa719d3d571e7f8b /test/parser/parser-test.c
parent45e92aa32a80fdbbf5ad3ad64e34b1ac872018ef (diff)
downloadtalos-petitboot-5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161.tar.gz
talos-petitboot-5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161.zip
discover: Add configuration methods
We'd like to be able to download petitboot configurations from other sources (not just local files), but we'll need some way to indicate to the parsers that a chunk of config data is from a specific source. This change adds "configuration methods". At present, we have only one: CONF_METHOD_LOCAL_FILE. For any incoming configuration data, we only run parsers that have registered themselves with that configuration method. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/parser-test.c')
-rw-r--r--test/parser/parser-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parser/parser-test.c b/test/parser/parser-test.c
index 33b411b..bf4ac6c 100644
--- a/test/parser/parser-test.c
+++ b/test/parser/parser-test.c
@@ -110,7 +110,7 @@ int main(int argc, char **argv)
argv[1], argv[2]);
ctx->device->device->id = talloc_strdup(ctx->device->device, argv[2]);
- iterate_parsers(ctx);
+ iterate_parsers(ctx, CONF_METHOD_LOCAL_FILE);
pb_log("--- end ---\n");
OpenPOWER on IntegriCloud