diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-01-29 13:50:46 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-01-29 14:32:49 +0000 |
commit | e06eafcbf0784271f51c0936852d1e97c0ccce8b (patch) | |
tree | e7e914cd82348e79b7662e6bd06851a0100e7751 /check | |
parent | 63f608d7c05095c16d1a8863b13c55634c0cae8b (diff) | |
download | definitions-e06eafcbf0784271f51c0936852d1e97c0ccce8b.tar.gz |
Make yaml be an optional dependency
This can go away when we have made a release with yaml in it, and its
staging filler.
Diffstat (limited to 'check')
-rwxr-xr-x | check | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -23,9 +23,16 @@ python setup.py clean check cmdtest tests cmdtest tests.branching cmdtest tests.merging -if [ $(whoami) = root ] && command -v mkfs.btrfs > /dev/null +if [ $(whoami) = root ] && command -v mkfs.btrfs > /dev/null && + python -c " +import morphlib, sys +if not morphlib.got_yaml: + sys.exit(1) +" > /dev/null 2>&1 then cmdtest tests.as-root +else + echo "NOT RUNNING tests.as-root" fi if [ -d .git ]; |