From 2fd5898643d075857ef0bdb4e24db3c7fdd79863 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Fri, 28 Aug 2020 15:43:31 -0500 Subject: configd: T2582: add option to run testsuite with daemon (default off) --- scripts/check-qemu-install | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'scripts/check-qemu-install') diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index b79ed03f..3d182dbe 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -67,6 +67,9 @@ parser.add_argument('--logfile', help='Log to file') parser.add_argument('--no-kvm', help='Disable use of kvm', action='store_true', default=False) +parser.add_argument('--configd', help='Execute testsuite with config daemon', + action='store_true', + default=False) args = parser.parse_args() @@ -276,6 +279,16 @@ try: # additional settling time time.sleep(20) + ################################################# + # Start/stop config daemon + ################################################# + if args.configd: + c.sendline('sudo systemctl start vyos-configd.service &> /dev/null') + c.expect(r'vyos@vyos:~\$') + else: + c.sendline('sudo systemctl stop vyos-configd.service &> /dev/null') + c.expect(r'vyos@vyos:~\$') + ################################################# # Basic Configmode/Opmode switch ################################################# -- cgit v1.2.3