From b55522fe0f40764979aad50563b0daa657882f78 Mon Sep 17 00:00:00 2001
From: Ravi Tripathi <ravi89@uab.edu>
Date: Fri, 10 Aug 2018 14:58:24 -0500
Subject: [PATCH] Added another type of test environment

---
 PART_1/prep_env | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/PART_1/prep_env b/PART_1/prep_env
index 6b95ffa..28096b2 100755
--- a/PART_1/prep_env
+++ b/PART_1/prep_env
@@ -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)
-- 
GitLab