mirror of https://github.com/krallin/tini.git
Randomize tests a little
This commit is contained in:
parent
c666a4f718
commit
acbb3e4391
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue