File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11# !/usr/bin/env tclsh
22#
33# MB, make bench between modulecmd versions
4- # Copyright (C) 2019-2022 Xavier Delaruelle
4+ # Copyright (C) 2019-2024 Xavier Delaruelle
55#
66# This program is free software: you can redistribute it and/or modify
77# it under the terms of the GNU General Public License as published by
@@ -55,8 +55,8 @@ set curdir [pwd]
5555
5656# time test run for a given modulecmd version
5757proc bench {tag args} {
58- return [expr {round([lindex [split [time {eval exec ./modulecmd.$tag sh\
59- $args >>& /dev/null} $::benchrep ]] 0] / 1000)}]
58+ return [expr {round([lindex [split [time {catch { exec ./modulecmd.$tag sh\
59+ {*} $args >>& /dev/null} } $::benchrep ]] 0] / 1000)}]
6060}
6161
6262# profile given modulecmd version test run
You can’t perform that action at this time.
0 commit comments