summaryrefslogtreecommitdiff
path: root/scripts/check-qemu-install
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-08-28 15:43:31 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-08-31 09:33:47 -0500
commit2fd5898643d075857ef0bdb4e24db3c7fdd79863 (patch)
tree9fce2b6bd8eac3eaabf8b5972b61062e2144c3d1 /scripts/check-qemu-install
parentc3c1fa4518f7889f8d65188b6069f4b07071133a (diff)
downloadvyos-build-2fd5898643d075857ef0bdb4e24db3c7fdd79863.tar.gz
vyos-build-2fd5898643d075857ef0bdb4e24db3c7fdd79863.zip
configd: T2582: add option to run testsuite with daemon (default off)
Diffstat (limited to 'scripts/check-qemu-install')
-rwxr-xr-xscripts/check-qemu-install13
1 files changed, 13 insertions, 0 deletions
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()
@@ -277,6 +280,16 @@ try:
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
#################################################
log.info("Basic CLI configuration mode test")