xk6-frostfs/scenarios/libs/env-parser.js

11 lines
263 B
JavaScript
Raw Permalink Normal View History

import env from 'k6/x/frostfs/env';
export function parseEnv() {
if (__ENV.ENV_FILE) {
const parsedVars = env.parse(__ENV.ENV_FILE)
for (const prop in parsedVars) {
__ENV[prop] = __ENV[prop] || parsedVars[prop];
}
}
}