Skip to content
Snippets Groups Projects
Commit b55522fe authored by Ravi Tripathi's avatar Ravi Tripathi
Browse files

Added another type of test environment

parent 690b5691
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,12 @@ def create_testfiles_rand(dir):
def create_testfiles_diff(dir):
for x in range(1, 6):
filename = 'test' + str(x) + '.txt'
with open(os.path.join(dir, filename), 'w'):
dir1 = ''.join(random.sample((string.ascii_uppercase+string.digits),6))
finaldir = os.path.join(dir, dir1)
if not os.path.exists(finaldir):
os.makedirs(finaldir)
filename = 'test'
with open(os.path.join(finaldir, filename), 'w'):
pass
if __name__=="__main__":
......@@ -38,5 +42,5 @@ if __name__=="__main__":
create_testfiles_seq(testdir)
if args.type == 'rand':
create_testfiles_rand(testdir)
if args.type == 'seq':
if args.type == 'diff':
create_testfiles_diff(testdir)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment