Commit 86709807 authored by Benjamin Blanc's avatar Benjamin Blanc

Change instance title

parent cea4a4ac
...@@ -93,7 +93,7 @@ class ScalabilityTestRunner(): ...@@ -93,7 +93,7 @@ class ScalabilityTestRunner():
instance_title += "("+test_suite_title+")-" instance_title += "("+test_suite_title+")-"
instance_title += str(self.involved_nodes_computer_guid).replace("'","") instance_title += str(self.involved_nodes_computer_guid).replace("'","")
instance_title += "-" instance_title += "-"
instance_title += testnodeUtils.generateRandomString(6) instance_title += time.strftime('%d/%m/%y_%H:%M:%S',time.localtime())
return instance_title return instance_title
def _createInstance(self, software_path, software_configuration, instance_title): def _createInstance(self, software_path, software_configuration, instance_title):
......
...@@ -19,11 +19,4 @@ def deunicodeData(data): ...@@ -19,11 +19,4 @@ def deunicodeData(data):
new_data[key] = value new_data[key] = value
else: else:
new_data = data new_data = data
return new_data return new_data
\ No newline at end of file
def generateRandomString(size):
tab = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
my_string = ''
for i in range(size):
my_string = my_string + choice(tab)
return my_string
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment