Randomize tests a little

This commit is contained in:
Thomas Orozco 2015-03-01 11:01:49 -05:00
parent c666a4f718
commit acbb3e4391
1 changed files with 3 additions and 2 deletions

View File

@ -2,10 +2,11 @@
from __future__ import print_function
import subprocess
import os
import random
if __name__ == "__main__":
# Spawn lots of process
for i in range(0, 10):
cmd = ["sleep", str(1 + i % 2)]
for i in range(0, 100):
cmd = ["sleep", str(1 + i % 2 + random.random())]
proc = subprocess.Popen(cmd)