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' 
 | 
			
		||||
   ;;
 | 
			
		||||
 | 
			
		||||
   test-all)
 | 
			
		||||
      python3 -m unittest discover test '*.py' 
 | 
			
		||||
   ;;
 | 
			
		||||
 | 
			
		||||
   *)
 | 
			
		||||
      echo ''
 | 
			
		||||
      echo 'Welcome to cdist!'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,10 +21,14 @@
 | 
			
		|||
#
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import os
 | 
			
		||||
import subprocess
 | 
			
		||||
import unittest
 | 
			
		||||
 | 
			
		||||
cdist_commands=["banner", "config", "install"]
 | 
			
		||||
 | 
			
		||||
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):
 | 
			
		||||
    def test_banner(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue