Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: internal: input_chunk: Use the different storage.path per tests #7762

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/internal/input_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void do_test(char *system, const char *target, ...)
int out_ffd;
char path[PATH_MAX];
struct tail_test_result result = {0};
char storage_path[PATH_MAX];

result.nMatched = 0;
result.target = target;
Expand All @@ -175,10 +176,12 @@ void do_test(char *system, const char *target, ...)

ctx = flb_create();

snprintf(storage_path, sizeof(storage_path) - 1, "/tmp/input-chunk-test-%s", target);

/* create chunks in /tmp folder */
ret = flb_service_set(ctx,
"Parsers_File", DPATH "parser.conf",
"storage.path", "/tmp/input-chunk-test/",
"storage.path", storage_path,
"Log_Level", "error",
NULL);
TEST_CHECK_(ret == 0, "setting service options");
Expand Down
Loading