mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 14:50:19 +00:00
22 lines
375 B
Bash
Executable File
22 lines
375 B
Bash
Executable File
#!/usr/bin/env bats
|
|
export BAKEFILE=env.Bakefile
|
|
export HELLO=WORLD
|
|
|
|
|
|
@test "env cache clear" {
|
|
bake --clear-envs env
|
|
}
|
|
|
|
|
|
@test "removal of environment untrusted variables" {
|
|
run bake env
|
|
[[ "${output}" != *HELLO=WORLD* ]]
|
|
}
|
|
|
|
|
|
@test "allowance of environment untrusted variables" {
|
|
run bake --allow HELLO
|
|
run bake env
|
|
[[ "${output}" == *"WORLD"* ]]
|
|
}
|