run_loop 1.1.1.pre5 → 1.1.1.pre6
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.
- checksums.yaml +4 -4
- data/lib/run_loop/core.rb +10 -2
- data/lib/run_loop/version.rb +1 -1
- data/scripts/calabash_script_uia.js +3401 -3399
- data/scripts/run_loop_host.js +3 -3
- metadata +1 -1
data/scripts/run_loop_host.js
CHANGED
|
@@ -161,7 +161,7 @@ var blockingReadScriptPath = "$READ_SCRIPT_PATH";
|
|
|
161
161
|
var _expectedIndex = 0,//expected index of next command
|
|
162
162
|
_actualIndex,//actual index of next command by reading commandPath
|
|
163
163
|
_index,//index of ':' char in command
|
|
164
|
-
_exp,//expression to be eval'ed
|
|
164
|
+
_exp = null,//expression to be eval'ed
|
|
165
165
|
_result,//result of eval
|
|
166
166
|
_input,//command
|
|
167
167
|
_process;//host command process
|
|
@@ -302,7 +302,7 @@ while (true) {
|
|
|
302
302
|
_actualIndex = parseInt(_input.substring(0, _index), 10);
|
|
303
303
|
if (!isNaN(_actualIndex) && _actualIndex >= _expectedIndex) {
|
|
304
304
|
_exp = _input.substring(_index + 1, _input.length);
|
|
305
|
-
|
|
305
|
+
UIALogger.logMessage("Execute command: "+_exp);
|
|
306
306
|
_result = eval(_exp);
|
|
307
307
|
}
|
|
308
308
|
else {//likely old command is lingering...
|
|
@@ -315,7 +315,7 @@ while (true) {
|
|
|
315
315
|
|
|
316
316
|
}
|
|
317
317
|
catch (err) {
|
|
318
|
-
Log.result("error", err.toString() + " " + (err.stack ? err.stack.toString() : ""));
|
|
318
|
+
Log.result("error", "Input: " + (_exp ? _exp.toString() : "null") + ". Error: " + err.toString() + " " + (err.stack ? err.stack.toString() : ""));
|
|
319
319
|
_expectedIndex++;
|
|
320
320
|
continue;
|
|
321
321
|
}
|