mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-26 13:47:40 +00:00
Seed Python random generator on start.
This commit is contained in:
@@ -7,6 +7,7 @@ import inspect
|
|||||||
import fnmatch
|
import fnmatch
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
|
import random
|
||||||
|
|
||||||
from lib import BaseTest
|
from lib import BaseTest
|
||||||
from s3_lib import S3Test
|
from s3_lib import S3Test
|
||||||
@@ -98,6 +99,7 @@ def run(include_long_tests=False, capture_results=False, tests=None, filters=Non
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.chdir(os.path.realpath(os.path.dirname(sys.argv[0])))
|
os.chdir(os.path.realpath(os.path.dirname(sys.argv[0])))
|
||||||
|
random.seed()
|
||||||
include_long_tests = False
|
include_long_tests = False
|
||||||
capture_results = False
|
capture_results = False
|
||||||
tests = None
|
tests = None
|
||||||
|
|||||||
Reference in New Issue
Block a user