1
0
Fork 0
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:
Steffen Vogel 2020-06-11 16:09:58 +02:00
parent cc1d1d4298
commit 91f9000038

View file

@ -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);