~xubuntu-dev/ubuntu-cdimage/xubuntu-base

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

# Depends:
#  python,
#  python-mock,
#  python3,
#  python3 (>= 3.3) | python3-mock,
#  procmail,
#  squashfs-tools

if [ -z "$*" ]; then
	set -- discover cdimage.tests
fi

PYTHONPATH=lib python -m unittest "$@"
if which python3 >/dev/null 2>&1; then
	PYTHONPATH=lib python3 -m unittest "$@"
fi