Fixed test platform not removing invalid platforms when running on hw.
@@ -174,10 +174,11 @@ std::vector<std::string> test_platform::platforms(
}
// from the list of platform names requested, remove the ones not found in
// the platform db
+ keys.erase(
std::remove_if(keys.begin(), keys.end(), [](const std::string &n) {
auto db = fpga_db::instance();
return !db->exists(n);
- });
+ }), keys.end());
return keys;
}
