Commit 5f3dd901 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

unit-tests: allow FPGA configuration to provided via env var

parent 183c47d0
......@@ -62,7 +62,8 @@ static void init()
auto vfioContainer = VfioContainer::create();
/* Parse FPGA configuration */
f = fopen(TEST_CONFIG, "r");
char *fn = getenv("TEST_CONFIG");
f = fopen(fn ? fn : TEST_CONFIG, "r");
cr_assert_not_null(f, "Cannot open config file");
json_t *json = json_loadf(f, 0, &err);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment