Skip to content

Commit 0f32f00

Browse files
committed
Use bash parameters a bit better
1 parent 797b43d commit 0f32f00

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ destructed/output.json
1010

1111
*.pyc
1212
*.retry
13+
*.time
1314

1415
outme
1516
outme.log

destructed/run_timing.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ echo ""
1010

1111
host_scales=(10 100 1000 10000 100000 1000000)
1212

13-
twrap="timeout 30 time -o run_once.time -a"
13+
timeout_value=120
14+
15+
twrap="timeout ${timeout_value} time -o run_once.time -a"
1416

1517
for host_count in "${host_scales[@]}"
1618
do
@@ -28,7 +30,7 @@ echo "**************************************************************************
2830
echo "Running ansible-playbook with --limit to only select a single host"
2931
echo ""
3032

31-
twrap="timeout 30 time -o playbook_limit.time -a"
33+
twrap="timeout ${timeout_value} time -o playbook_limit.time -a"
3234

3335
for host_count in "${host_scales[@]}"
3436
do
@@ -46,7 +48,7 @@ echo "**************************************************************************
4648
echo "Running ansible-playbook with destructed inventory plugin to limit to a single host"
4749
echo ""
4850

49-
twrap="timeout 30 time -o playbook_destructed.time -a"
51+
twrap="timeout ${timeout_value} time -o playbook_destructed.time -a"
5052

5153
for host_count in "${host_scales[@]}"
5254
do
@@ -64,7 +66,7 @@ echo "**************************************************************************
6466
echo "Running ansible-inventory against the specified inventory"
6567
echo ""
6668

67-
twrap="timeout 30 time -o inventory.time -a"
69+
twrap="timeout ${timeout_value} time -o inventory.time -a"
6870

6971
for host_count in "${host_scales[@]}"
7072
do
@@ -82,7 +84,7 @@ echo "**************************************************************************
8284
echo "Running ansible-inventory with the destructed inventory plugin"
8385
echo ""
8486

85-
twrap="timeout 30 time -o inventory_destructed.time -a"
87+
twrap="timeout ${timeout_value} time -o inventory_destructed.time -a"
8688

8789
for host_count in "${host_scales[@]}"
8890
do
@@ -100,7 +102,7 @@ echo "**************************************************************************
100102
echo "Running ansible-inventory with --limit to limit to one host"
101103
echo ""
102104

103-
twrap="timeout 30 time -o inventory_limit.time -a"
105+
twrap="timeout ${timeout_value} time -o inventory_limit.time -a"
104106

105107
for host_count in "${host_scales[@]}"
106108
do

0 commit comments

Comments
 (0)