Skip to content

Commit 8274e63

Browse files
committed
Fix case statement indentation to stand out
1 parent d76faf6 commit 8274e63

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

agent/bench-scripts/pbench-trafficgen

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -448,173 +448,173 @@ fi
448448
eval set -- "$opts"
449449
while true; do
450450
case "$1" in
451-
--tool-label-pattern)
451+
--tool-label-pattern)
452452
shift
453453
if [ -n "$1" ]; then
454454
tool_label_pattern="$1"
455455
shift
456456
fi
457457
;;
458-
--postprocess-only)
458+
--postprocess-only)
459459
shift
460460
if [ -n "$1" ]; then
461461
postprocess_only="$1"
462462
shift
463463
fi
464464
;;
465-
--run-dir)
465+
--run-dir)
466466
shift
467467
if [ -n "$1" ]; then
468468
benchmark_run_dir="$1"
469469
shift
470470
fi
471471
;;
472-
--max-stddev)
472+
--max-stddev)
473473
shift
474474
if [ -n "$1" ]; then
475475
maxstddevpct="$1"
476476
shift
477477
fi
478478
;;
479-
--max-failures)
479+
--max-failures)
480480
shift
481481
if [ -n "$1" ]; then
482482
max_failures="$1"
483483
shift
484484
fi
485485
;;
486-
--samples)
486+
--samples)
487487
shift
488488
if [ -n "$1" ]; then
489489
num_samples="$1"
490490
shift
491491
fi
492492
;;
493-
--traffic-generator)
493+
--traffic-generator)
494494
shift
495495
if [ -n "$1" ]; then
496496
traffic_generator="$1"
497497
shift
498498
fi
499499
;;
500-
--num-flows)
500+
--num-flows)
501501
shift
502502
if [ -n "$1" ]; then
503503
num_flows="$1"
504504
shift
505505
fi
506506
;;
507-
--rate-unit)
507+
--rate-unit)
508508
shift
509509
if [ -n "$1" ]; then
510510
rate_unit="$1"
511511
shift
512512
fi
513513
;;
514-
--rate|--rates)
514+
--rate|--rates)
515515
shift
516516
if [ -n "$1" ]; then
517517
rates="$1"
518518
shift
519519
fi
520520
;;
521-
--rate-tolerance-pct)
521+
--rate-tolerance-pct)
522522
shift
523523
if [ -n "$1" ]; then
524524
rate_tolerance_pct="$1"
525525
shift
526526
fi
527527
;;
528-
--max-loss-pct|--max-loss-pcts)
528+
--max-loss-pct|--max-loss-pcts)
529529
shift
530530
if [ -n "$1" ]; then
531531
max_loss_pcts="$1"
532532
shift
533533
fi
534534
;;
535-
--traffic-direction|--traffic-directions)
535+
--traffic-direction|--traffic-directions)
536536
shift
537537
if [ -n "$1" ]; then
538538
traffic_directions="$1"
539539
shift
540540
fi
541541
;;
542-
--tool-group)
542+
--tool-group)
543543
shift
544544
if [ -n "$1" ]; then
545545
tool_group="$1"
546546
shift
547547
fi
548548
;;
549-
--frame-size|--frame-sizes)
549+
--frame-size|--frame-sizes)
550550
shift
551551
if [ -n "$1" ]; then
552552
frame_sizes="$1"
553553
shift
554554
fi
555555
;;
556-
--devices)
556+
--devices)
557557
shift
558558
if [ -n "$1" ]; then
559559
devices="$1"
560560
shift
561561
fi
562562
;;
563-
--active-devices)
563+
--active-devices)
564564
shift
565565
if [ -n "${1}" ]; then
566566
active_devices="${1}"
567567
shift
568568
fi
569569
;;
570-
--config)
570+
--config)
571571
shift
572572
if [ -n "$1" ]; then
573573
config="$1"
574574
shift
575575
fi
576576
;;
577-
--start-iteration-num)
577+
--start-iteration-num)
578578
shift
579579
if [ -n "$1" ]; then
580580
start_iteration_num=$1
581581
shift
582582
fi
583583
;;
584-
--pre-benchmark-cmd)
584+
--pre-benchmark-cmd)
585585
shift
586586
if [ -n "$1" ]; then
587587
pre_benchmark_cmd=$1
588588
shift
589589
fi
590590
;;
591-
--tool-period)
591+
--tool-period)
592592
shift
593593
if [ -n "$1" ]; then
594594
tool_period=$1
595595
shift
596596
fi
597597
;;
598-
--one-shot)
598+
--one-shot)
599599
shift
600600
one_shot="y"
601601
;;
602-
--trex-use-ht)
602+
--trex-use-ht)
603603
shift
604604
trex_use_ht="y"
605605
;;
606-
--trex-use-l2)
606+
--trex-use-l2)
607607
shift
608608
trex_use_l2="y"
609609
;;
610-
--flow-mods)
610+
--flow-mods)
611611
shift
612612
if [ -n "$1" ]; then
613613
flow_mods="$1"
614614
shift
615615
fi
616616
;;
617-
--validation-runtime|--sniff-runtime|--search-runtime)
617+
--validation-runtime|--sniff-runtime|--search-runtime)
618618
arg="$1"
619619
shift
620620
if [ -n "$1" ]; then
@@ -626,7 +626,7 @@ while true; do
626626
;;
627627
# for options which if not used, do not affect the binary-search.py options (and binary-search should not use them by default)
628628
# these options must match the options to binary-search.py *exactly*
629-
--overlay-ids|--vlan-ids|--overlay-types|--src-ips|--src-macs|--dst-ips|--dst-macs|--encap-src-ips|--encap-src-macs|--encap-dst-ips|--encap-dst-macs|--src-ports|--dst-ports|--packet-protocol)
629+
--overlay-ids|--vlan-ids|--overlay-types|--src-ips|--src-macs|--dst-ips|--dst-macs|--encap-src-ips|--encap-src-macs|--encap-dst-ips|--encap-dst-macs|--src-ports|--dst-ports|--packet-protocol)
630630
arg="$1"
631631
shift
632632
if [ -n "$1" ]; then
@@ -637,37 +637,37 @@ while true; do
637637
shift
638638
fi
639639
;;
640-
--skip-trex-install)
640+
--skip-trex-install)
641641
shift
642642
skip_trex_install="y"
643643
;;
644-
--skip-trex-server)
644+
--skip-trex-server)
645645
shift
646646
skip_trex_server="y"
647647
;;
648-
--skip-git-pull)
648+
--skip-git-pull)
649649
shift
650650
skip_git_pull="y"
651651
;;
652-
--traffic-profile|--traffic-profiles)
652+
--traffic-profile|--traffic-profiles)
653653
shift
654654
if [ -n "$1" ]; then
655655
traffic_profiles="$1"
656656
shift
657657
fi
658658
;;
659-
--sysinfo)
659+
--sysinfo)
660660
shift;
661661
if [ -n "$1" ]; then
662662
sysinfo="$1"
663663
shift;
664664
fi
665665
;;
666-
-h|--help)
666+
-h|--help)
667667
usage
668668
exit 0
669669
;;
670-
--)
670+
--)
671671
shift
672672
while true; do
673673
arg="$1"
@@ -680,7 +680,7 @@ while true; do
680680
done
681681
break
682682
;;
683-
*)
683+
*)
684684
error_log "[$script_name] bad option, \"$1 $2\""
685685
usage
686686
exit 1

0 commit comments

Comments
 (0)