Logo
Explore Help
Sign In
token2/snapd
0
0
Fork 0
You've already forked snapd
mirror of https://github.com/token2/snapd.git synced 2026-03-13 11:15:47 -07:00
Code Issues Packages Projects Releases Wiki Activity
Files
patch-1
snapd/tests/lib/tools/MATCH

9 lines
202 B
Plaintext
Raw Permalink Normal View History

spread.yaml,tests: change MATCH and REBOOT to cmds MATCH and REBOOT are bash functions defined by spread itself. For the longest time we've been capturing their definitions so that scripts that are not sourced from spread.yaml or task.yaml (so don't have access to their definition) can still execute them. This patch evolves the idea to unset the original definitions and convert them to proper executables that are on PATH. This allows them to be used from any programming language (including Python) and to be used with the recently-introduced "not" command. Existing users of the spread-funcs.sh are converted to just execute the commands from PATH. Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
2019-05-24 09:57:29 +02:00
#!/bin/bash
# Source spread-funcs.sh which, at runtime, contains the real definition of
# MATCH and execute it.
# shellcheck source=tests/lib/spread-funcs.sh
. "$TESTSLIB/spread-funcs.sh"
MATCH "$@"
Reference in New Issue Copy Permalink
Powered by Gitea Page: 367ms Template: 7ms
English
English
Licenses API