@iobroker/legacy-testing 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/build/setup.js +16 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,9 @@ The variable is ignored if the admin itself is the adapter under test.
|
|
|
23
23
|
|
|
24
24
|
<!-- ### **WORK IN PROGRESS** -->
|
|
25
25
|
## Changelog
|
|
26
|
+
### 4.0.2 (2026-11-29)
|
|
27
|
+
- (@GermanBluefox) Fixed: `installJsController()` runs `setup first` also after installing js-controller from npm, because js-controller 8 has no install script any more (js-controller#3673); the GUI tests waited forever
|
|
28
|
+
|
|
26
29
|
### 4.0.1 (2026-10-15)
|
|
27
30
|
- (@GermanBluefox) Fixed `startController(callback)` and `startController(onObjectChange, onStateChange, callback)`: the callback was never called, so the test hung until its timeout (broken since 2.1.0)
|
|
28
31
|
|
package/build/setup.js
CHANGED
|
@@ -421,23 +421,24 @@ async function installJsController(preInstalledAdapters, cb) {
|
|
|
421
421
|
stdio: [0, 1, 2],
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
|
+
// js-controller 8 has no install script any more (npm 12 skips them, js-controller#3673), so
|
|
425
|
+
// `setup first` is called here also after a fresh installation. Older versions ran it in their
|
|
426
|
+
// install script already; it runs on every upgrade too, so calling it again does no harm.
|
|
427
|
+
console.log('Setup js-controller...');
|
|
428
|
+
let __pid;
|
|
429
|
+
if (debug) {
|
|
430
|
+
// start controller
|
|
431
|
+
__pid = (0, node_child_process_1.exec)(`node iobroker.js setup first`, {
|
|
432
|
+
cwd: `${rootDir}tmp/node_modules/iobroker.js-controller`,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
424
435
|
else {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
__pid = (0, node_child_process_1.exec)(`node iobroker.js setup first`, {
|
|
430
|
-
cwd: `${rootDir}tmp/node_modules/iobroker.js-controller`,
|
|
431
|
-
});
|
|
432
|
-
}
|
|
433
|
-
else {
|
|
434
|
-
__pid = (0, node_child_process_1.fork)(`iobroker.js`, ['setup', 'first'], {
|
|
435
|
-
cwd: `${rootDir}tmp/node_modules/iobroker.js-controller`,
|
|
436
|
-
stdio: [0, 1, 2, 'ipc'],
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
await waitForEndAsync(__pid);
|
|
436
|
+
__pid = (0, node_child_process_1.fork)(`iobroker.js`, ['setup', 'first'], {
|
|
437
|
+
cwd: `${rootDir}tmp/node_modules/iobroker.js-controller`,
|
|
438
|
+
stdio: [0, 1, 2, 'ipc'],
|
|
439
|
+
});
|
|
440
440
|
}
|
|
441
|
+
await waitForEndAsync(__pid);
|
|
441
442
|
// let npm install admin and run setup
|
|
442
443
|
await checkIsControllerInstalledAsync();
|
|
443
444
|
let _pid;
|
package/package.json
CHANGED