add test all and make ui tests work again

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-02 15:56:27 +02:00
parent df727a6b6b
commit cadb4fa852
2 changed files with 9 additions and 1 deletions

View file

@ -130,6 +130,10 @@ case "$1" in
python3 -m unittest discover test 'test_*.py' python3 -m unittest discover test 'test_*.py'
;; ;;
test-all)
python3 -m unittest discover test '*.py'
;;
*) *)
echo '' echo ''
echo 'Welcome to cdist!' echo 'Welcome to cdist!'

View file

@ -21,10 +21,14 @@
# #
import os
import subprocess import subprocess
import unittest
cdist_commands=["banner", "config", "install"]
cdist_exec_path = os.path.abspath( cdist_exec_path = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "bin/cdist")) os.path.join(os.path.dirname(os.path.realpath(__file__)), "../bin/cdist"))
class UI(unittest.TestCase): class UI(unittest.TestCase):
def test_banner(self): def test_banner(self):