Skip to content

Commit cf20473

Browse files
mhdawsonRaisinTen
andauthored
Update test/addons/openssl-test-engine/test.js
Co-authored-by: Darshan Sen <[email protected]>
1 parent e546eda commit cf20473

File tree

1 file changed

+6
-0
lines changed
  • test/addons/openssl-test-engine

1 file changed

+6
-0
lines changed

test/addons/openssl-test-engine/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ crypto.setEngine('dynamic');
3131
crypto.setEngine('dynamic', crypto.constants.ENGINE_METHOD_RSA);
3232
crypto.setEngine('dynamic', crypto.constants.ENGINE_METHOD_RSA);
3333

34+
const engine = path.join(__dirname,
35+
`/build/${common.buildType}/testsetengine.engine`);
36+
37+
if (!fs.existsSync(engine))
38+
common.skip('no engine');
39+
3440
{
3541
const engineId = path.parse(engine).name;
3642
const execDir = path.parse(engine).dir;

0 commit comments

Comments
 (0)