Commit 15b55f30 by sikang

update script

parent 0bc7ee01
......@@ -16,9 +16,10 @@ class ManifestGarble:
#在包中随机创建Activity
def __create_activities(self,path):
activities = []
rand_num = random.randint(0,3)
for root, dirs, files in os.walk(path):
randomBool = random.randint(0,10) % random.randint(0,3) == 0
if randomBool and len(files) > 0 and (files[0].endswith(".java") or files[0].endswith(".kt")):
rand_bool = random.randint(0,10) % rand_num == 0
if rand_bool and len(files) > 0 and (files[0].endswith(".java") or files[0].endswith(".kt")):
for i in range(0,random.randint(3,10)):
act_name = self.__gen_rand_str()
act_path = "%s/%s.java"%(root, act_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment