forked from ungleich-public/cdist
add test all and make ui tests work again
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
df727a6b6b
commit
cadb4fa852
2 changed files with 9 additions and 1 deletions
4
build.sh
4
build.sh
|
@ -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!'
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue