Skip to content

Commit f6e1d73

Browse files
committed
Added info about quoting places where variable occurs
1 parent ea49c0f commit f6e1d73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/en/docs/measuring/usage-scenario.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,16 @@ flow:
327327

328328
Here we can leverage the variable functionality to supply different durations without creating new usage scenarios all the time.
329329

330+
Beware that it is often very helpful to put the whole command in quotes like this:
331+
332+
```yml
333+
...
334+
command: "stress-ng -c 1 -t __GMT_VAR_DURATION__ -q"
335+
...
336+
```
337+
338+
The reason being that when your variable contains *YAML* control characters like a *:* you might get into parsing errors.
339+
330340
A run where we want the variable to be *1* as example can be started like this:
331341
```bash
332342
$ python3 runner.py --uri PATH_TO_SCENARIO --variables "__GMT_VAR_DURATION__=1"

0 commit comments

Comments
 (0)