mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
16 lines
377 B
Bash
16 lines
377 B
Bash
@test "arguments don't work (set -u)" {
|
|
run bake -b args.Bakefile argv
|
|
[ "${status}" -eq 1 ]
|
|
}
|
|
|
|
@test "arguments do work [argv]" {
|
|
run bake --silent -b args.Bakefile argv 1 2 KEY=VALUE 3
|
|
[[ "${lines[0]}" == *"1 2 3"* ]]
|
|
}
|
|
|
|
|
|
@test "arguments do work [environ]" {
|
|
run bake --silent -b args.Bakefile argv 1 2 KEY=VALUE 3
|
|
[[ "${lines[1]}" == *"VALUE"* ]]
|
|
}
|