Skip to content
Snippets Groups Projects
Commit dd5f15ac authored by Boman Romain's avatar Boman Romain
Browse files

add cmdline option for csv output

parent ecea583d
Branches devel/bb2024
No related tags found
No related merge requests found
Pipeline #19045 passed
......@@ -46,6 +46,8 @@ def parseargs():
"--nogui", help="disable any graphical output", action="store_true")
parser.add_argument(
"--post", help="display existing results", action="store_true")
parser.add_argument(
"--csv", help="convert results to csv", action="store_true")
parser.add_argument("-k", help="nb of threads", type=int, default=os.cpu_count())
parser.add_argument('file', help='python file', type=str, nargs='?')
args = parser.parse_args()
......
......@@ -385,6 +385,8 @@ if __name__ == "__main__":
workspace = None # use default
if args.post:
action = 'post'
elif args.csv:
action = 'csv'
else:
action = 'run'
testname = os.path.abspath(args.file)
......
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