github.com/chipaca/snappy@v0.0.0-20210104084008-1f06296fe8ad/cmd/snap-confine/spread-tests/main/debug-flags/task.yaml (about)

     1  summary: snap-confine honors SNAP_CONFINE_DEBUG environment variable
     2  execute: |
     3      for value in yes no 0 1 unicorn; do
     4          SNAP_CONFINE_DEBUG=$value ubuntu-core-launcher blah 2>debug.$value || :
     5      done
     6      grep -F -q 'DEBUG: shifting arguments by one' debug.yes
     7      grep -F -q 'DEBUG: shifting arguments by one' debug.1
     8      grep -F -v -q 'DEBUG: shifting arguments by one' debug.no
     9      grep -F -v -q 'DEBUG: shifting arguments by one' debug.0
    10      grep -F -q 'WARNING: unrecognized value of environment variable SNAP_CONFINE_DEBUG (expected yes/no or 1/0)' debug.unicorn
    11  restore: |
    12      rm -f debug.*