mirror of
				https://github.com/vyos/vyos-build.git
				synced 2025-10-01 20:28:40 +02:00 
			
		
		
		
	T7352: add test script arg for testing under vyconfd/commitd
This commit is contained in:
		
							parent
							
								
									c1adab0c13
								
							
						
					
					
						commit
						45c21a06ea
					
				| @ -97,6 +97,8 @@ parser.add_argument('--qemu-cmd', help='Only generate QEMU launch command', | |||||||
|                 action='store_true', default=False) |                 action='store_true', default=False) | ||||||
| parser.add_argument('--cpu', help='Set QEMU CPU', type=int, default=2) | parser.add_argument('--cpu', help='Set QEMU CPU', type=int, default=2) | ||||||
| parser.add_argument('--memory', help='Set QEMU memory', type=int, default=4) | parser.add_argument('--memory', help='Set QEMU memory', type=int, default=4) | ||||||
|  | parser.add_argument('--vyconf', help='Execute testsuite with vyconfd', action='store_true', | ||||||
|  |                     default=False) | ||||||
| 
 | 
 | ||||||
| args = parser.parse_args() | args = parser.parse_args() | ||||||
| 
 | 
 | ||||||
| @ -805,6 +807,11 @@ try: | |||||||
|             c.sendline('sudo rm -f /usr/libexec/vyos/tests/smoke/cli/test_interfaces_*') |             c.sendline('sudo rm -f /usr/libexec/vyos/tests/smoke/cli/test_interfaces_*') | ||||||
|             c.expect(op_mode_prompt) |             c.expect(op_mode_prompt) | ||||||
| 
 | 
 | ||||||
|  |         if args.vyconf: | ||||||
|  |             c.sendline('sudo /usr/libexec/vyos/set_vyconf_backend.py --no-prompt &> /dev/null') | ||||||
|  |             c.expect(op_mode_prompt) | ||||||
|  |             log.info('Smoketests will be run using vyconfd/vyos-commitd') | ||||||
|  | 
 | ||||||
|         log.info('Executing VyOS smoketests') |         log.info('Executing VyOS smoketests') | ||||||
|         c.sendline('/usr/bin/vyos-smoketest') |         c.sendline('/usr/bin/vyos-smoketest') | ||||||
|         i = c.expect(['\n +Invalid command:', '\n +Set failed', |         i = c.expect(['\n +Invalid command:', '\n +Set failed', | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user