Skip to content

Commit

Permalink
Switch to text iteration, works much better
Browse files Browse the repository at this point in the history
Issue #133
  • Loading branch information
damies13 committed Aug 22, 2023
1 parent 121ccb2 commit 20978e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rfswarm_agent/rfswarm_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ def create_repeater_listner_file(self):
fd.append(" jobdata = json.load(f)")
fd.append("")
fd.append(" self.count += 1")
fd.append(" newiteration = \"{}.{}\".format(test.parent.metadata['RFS_ITERATION'], self.count)")
fd.append(" newiteration = \"{}_{}\".format(test.parent.metadata['RFS_ITERATION'], self.count)")
fd.append(" BuiltIn().set_suite_variable(\"${RFS_ITERATION}\", newiteration)")
fd.append("")
fd.append(" if int(time.time()) < jobdata[\"EndTime\"]:")
Expand Down
2 changes: 1 addition & 1 deletion rfswarm_manager/rfswarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def ensure_db(self):
# create tables

c.execute('''CREATE TABLE Results
(script_index int, robot int, iteration real, agent text, sequence int, result_name text, result text, elapsed_time num, start_time num, end_time num)''')
(script_index int, robot int, iteration text, agent text, sequence int, result_name text, result text, elapsed_time num, start_time num, end_time num)''')

c.execute('''CREATE TABLE Metric
(ID INTEGER, Name TEXT NOT NULL, Type TEXT NOT NULL, PRIMARY KEY("ID"))''')
Expand Down

0 comments on commit 20978e5

Please sign in to comment.