Skip to content

Commit 7840869

Browse files
authored
fix: fixes the environment variable test (#723)
1 parent c4ffa0f commit 7840869

File tree

1 file changed

+49
-47
lines changed

1 file changed

+49
-47
lines changed

SPEC.md

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,63 +4052,65 @@ The environment variable should be evaluated by the engine prior to injecting it
40524052

40534053

40544054
<details>
4055-
<summary>
4056-
4057-
```wdl
4058-
version 1.2
4055+
<summary>
4056+
Example: environment_variables.wdl
4057+
4058+
```wdl
4059+
version 1.2
40594060
4060-
task test {
4061-
input {
4062-
env String greeting
4063-
}
4064-
command <<<
4065-
echo $foo
4066-
>>>
4067-
output {
4068-
String out= read_string(stdout())
4061+
task test {
4062+
input {
4063+
env String greeting
4064+
}
4065+
command <<<
4066+
echo $foo
4067+
>>>
4068+
output {
4069+
String out= read_string(stdout())
4070+
}
40694071
}
4070-
}
40714072
4072-
workflow environment_variable_should_echo {
4073-
input {
4074-
String greeting
4075-
}
4076-
4077-
call test {
4078-
input: greeting = greeting
4079-
}
4080-
4081-
output {
4082-
String out = test.out
4073+
workflow environment_variable_should_echo {
4074+
input {
4075+
String greeting
4076+
}
4077+
4078+
call test {
4079+
input: greeting = greeting
4080+
}
4081+
4082+
output {
4083+
String out = test.out
4084+
}
40834085
}
4084-
```
4085-
</summary>
4086-
<p>
4087-
Example input:
4086+
```
4087+
</summary>
4088+
<p>
4089+
Example input:
40884090

4089-
```json
4090-
{
4091-
"environment_variable_should_echo.greeting": "hello"
4092-
}
4093-
```
4091+
```json
4092+
{
4093+
"environment_variable_should_echo.greeting": "hello"
4094+
}
4095+
```
40944096

4095-
Example output:
4097+
Example output:
40964098

4097-
```json
4098-
{
4099-
"environment_variable_should_echo.out": "hello"
4100-
}
4101-
```
4099+
```json
4100+
{
4101+
"environment_variable_should_echo.out": "hello"
4102+
}
4103+
```
41024104

4103-
Test config:
4105+
Test config:
41044106

4105-
```json
4106-
{
4107-
"fail": false
4108-
}
4109-
```
4107+
```json
4108+
{
4109+
"fail": false
4110+
}
4111+
```
41104112

4111-
</p>
4113+
</p>
41124114
</details>
41134115

41144116
#### String Escaping and Injection Prevention

0 commit comments

Comments
 (0)