Browse Source
adding Test-force lines to tasks that force them to be installed, skipped, marked, or shown, without needing to write any code, and may be useful for CDDs. Closes: #275303keep-around/43e990ab3f4cc50982f8dbc32e3465ca7c827876

2 changed files with 29 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
#!/bin/sh |
|||
# |
|||
# Simple test script to automatically install/skip/mark/show tasks. |
|||
# |
|||
# To enable this test insert your tasks stanza a keyword like: |
|||
# |
|||
# Test-force: mark |
|||
# |
|||
case "$2" in |
|||
install) |
|||
exit 0 # do not display, but do install task |
|||
;; |
|||
skip) |
|||
exit 1 # do not display task |
|||
;; |
|||
mark) |
|||
exit 2 # display task, marked for installation |
|||
;; |
|||
show) |
|||
exit 3 # display task, not marked for installation |
|||
;; |
|||
*) |
|||
exit 1 # unknown value, skip the task |
|||
;; |
|||
esac |
Loading…
Reference in new issue