mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
unit-tests: allow FPGA configuration to provided via env var
This commit is contained in:
parent
cc1d1d4298
commit
91f9000038
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue