Commit 2a275821 by sikang

update script

parent 15b55f30
......@@ -16,9 +16,8 @@ class ManifestGarble:
#在包中随机创建Activity
def __create_activities(self,path):
activities = []
rand_num = random.randint(0,3)
for root, dirs, files in os.walk(path):
rand_bool = random.randint(0,10) % rand_num == 0
rand_bool = random.randint(1,10) % random.randint(1,2) == 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()
......
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