File: loglevel.bats

package info (click to toggle)
golang-github-containers-buildah 1.39.3%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,724 kB
  • sloc: sh: 2,398; makefile: 236; perl: 187; asm: 16; awk: 12; ansic: 1
file content (28 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bats

load helpers

@test "log-level set to debug" {
  run_buildah --log-level=debug images -q
  expect_output --substring "level=debug "
}

@test "log-level set to info" {
  run_buildah --log-level=info images -q
  expect_output ""
}

@test "log-level set to warn" {
  run_buildah --log-level=warn images -q
  expect_output ""
}

@test "log-level set to error" {
  run_buildah --log-level=error images -q
  expect_output ""
}

@test "log-level set to invalid" {
  run_buildah 125 --log-level=invalid images -q
  expect_output --substring "unable to parse log level"
}