testdriverai 7.8.0-test.24 → 7.8.0-test.26
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/lib/core/Dashcam.js +2 -9
- package/package.json +1 -1
package/lib/core/Dashcam.js
CHANGED
|
@@ -147,20 +147,13 @@ class Dashcam {
|
|
|
147
147
|
* @private
|
|
148
148
|
*/
|
|
149
149
|
async _getDashcamPath() {
|
|
150
|
-
const shell = this._getShell();
|
|
151
150
|
|
|
152
151
|
if (this.client.os === "windows") {
|
|
153
152
|
return "C:\\Program Files\\nodejs\\dashcam.cmd";
|
|
153
|
+
} else {
|
|
154
|
+
return "/usr/bin/dashcam";
|
|
154
155
|
}
|
|
155
156
|
|
|
156
|
-
const npmPrefix = await this.client.exec(
|
|
157
|
-
shell,
|
|
158
|
-
"npm prefix -g",
|
|
159
|
-
40000,
|
|
160
|
-
process.env.TD_DEBUG == "true" ? false : true,
|
|
161
|
-
);
|
|
162
|
-
|
|
163
|
-
return npmPrefix.trim() + "/bin/dashcam";
|
|
164
157
|
}
|
|
165
158
|
|
|
166
159
|
/**
|