Skip to content

Commit

Permalink
Clearer --regress parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbette committed Jun 13, 2024
1 parent 77a0898 commit de61d4b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions npf_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ def main():
g.add_argument('--branch', help='Branch', type=str, nargs='?', default=None)
g.add_argument('--compare-version', dest='compare_version', metavar='version', type=str, nargs='?',
help='A version to compare against the last version. Default is the first parent of the last version containing some results.')
af = g.add_mutually_exclusive_group()
af.add_argument('--regress-version', '--graph-version', dest='graph_version', metavar='version', type=str, nargs='*',
help='Versions to compare against. Alternative to --regress-history to identify versions to compare against.')
af.add_argument('--regress-history', '--graph-num', dest='graph_num', metavar='N', type=int, nargs='?', default=-1,
help='Number of olds versions to graph after --compare-version, unused if --graph-version is given. Default is 0 or 8 if --regress is given.')


a = npf.add_graph_options(parser)
af = a.add_mutually_exclusive_group()
af.add_argument('--graph-version', metavar='version', type=str, nargs='*',
help='versions to simply graph')
af.add_argument('--graph-num', metavar='N', type=int, nargs='?', default=-1,
help='Number of olds versions to graph after --compare-version, unused if --graph-version is given. Default is 0 or 8 if --regress is given.')
# a.add_argument('--graph-allvariables', help='Graph only the latest variables (usefull when you restrict variables '
# 'with tags)', dest='graph_newonly', action='store_true', default=False)
# a.add_argument('--graph-serie', dest='graph_serie', metavar='variable', type=str, nargs=1, default=[None],
Expand Down
2 changes: 1 addition & 1 deletion tests/tcp/01-iperf.npf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ iperf -s
//Launch the program, copy the output to a log
iperf -c ${server:0:ip} -w ${WINDOW}k -t $TIME -P $PARALLEL 2>&1 | tee iperf.log
//Parse the log to find the throughput
result=$(cat iperf.log | grep -ioE "[0-9.]+ [kmg]bits" | tail -n 1)
result=$(cat iperf.log | grep -ioE "[0-9.]+ [kmg]?bits" | tail -n 1)
//Give the throughput to NPF through stdout
echo "RESULT-THROUGHPUT $result"

0 comments on commit de61d4b

Please sign in to comment.