DO NOT MERGE Fix bug where monkey always tries to run multiple scripts.
Change condition so MonkeySourceRandromScript is only triggered on multiple scripts.
This commit is contained in:
@@ -411,7 +411,7 @@ public class Monkey {
|
||||
mEventSource.setVerbose(mVerbose);
|
||||
|
||||
mCountEvents = false;
|
||||
} else if (mScriptFileNames != null) {
|
||||
} else if (mScriptFileNames != null && mScriptFileNames.size() > 1) {
|
||||
if (mSetupFileName != null) {
|
||||
mEventSource = new MonkeySourceRandomScript(mSetupFileName, mScriptFileNames,
|
||||
mThrottle, mSeed);
|
||||
|
||||
Reference in New Issue
Block a user