summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-13 21:22:18 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-13 21:22:18 +0300
commita7dc5ff2e9369498c74326735f57e409a519e5ca (patch)
tree4c1da2fd553bc5061eabb00502db06c1f473c569
parentc882278f10f5d72535b3e08c89a3a2068ca706ef (diff)
downloadserver-yarns-a7dc5ff2e9369498c74326735f57e409a519e5ca.tar.gz
Start on lib.py
-rwxr-xr-xcheck6
-rw-r--r--lib.py8
-rw-r--r--without-tests1
3 files changed, 13 insertions, 2 deletions
diff --git a/check b/check
index 10d834d..c465984 100755
--- a/check
+++ b/check
@@ -13,11 +13,13 @@ then
PASSWORD_STORE_DIR="$HOME/.password-store"
fi
-python -m CoverageTestRunner
+python -m CoverageTestRunner --ignore-missing-from=without-tests
+
yarn --env "ADDRESS=$address" \
--env 'PYTHONPATH=.' \
--env "PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR" \
--env "PASS_HOME=$HOME" \
--env "VARIABLES=$variables" \
--env "SSH_AUTH_SOCK=$SSH_AUTH_SOCK" \
- --shell python2 --shell-arg '' *.yarn "$@"
+ --shell python2 --shell-arg '' --shell-library lib.py \
+ *.yarn "$@"
diff --git a/lib.py b/lib.py
new file mode 100644
index 0000000..56eea02
--- /dev/null
+++ b/lib.py
@@ -0,0 +1,8 @@
+import os
+
+import yarnutils
+
+srcdir = os.environ['SRCDIR']
+datadir = os.environ['DATADIR']
+
+vars = yarnutils.Variables(datadir)
diff --git a/without-tests b/without-tests
new file mode 100644
index 0000000..92c075e
--- /dev/null
+++ b/without-tests
@@ -0,0 +1 @@
+lib.py