Skip to content

Commit bc77b38

Browse files
authored
Merge pull request #963 from jestabro/config-context
T7352: add arg to test script for running smoketests under vyconfd/commitd
2 parents 9f1bf2d + 45c21a0 commit bc77b38

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

data/live-build-config/hooks/live/18-enable-disable_services.chroot

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,15 @@ systemctl disable zabbix-agent2.service
7171
systemctl disable suricata.service
7272
systemctl disable vyconfd.service
7373
systemctl disable vpp.service
74-
systemctl disable vyos-commitd.service
7574
systemctl disable netplug.service
7675

77-
7876
echo I: Enabling services
7977
systemctl enable vyos-hostsd.service
8078
systemctl enable acpid.service
8179
systemctl enable vyos-router.service
8280
systemctl enable vyos-configd.service
8381
systemctl enable vyos-grub-update.service
82+
systemctl enable vyos-commitd.service
8483

8584
echo I: Masking services
8685
systemctl mask systemd-journald-audit.socket

scripts/check-qemu-install

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ parser.add_argument('--qemu-cmd', help='Only generate QEMU launch command',
9797
action='store_true', default=False)
9898
parser.add_argument('--cpu', help='Set QEMU CPU', type=int, default=2)
9999
parser.add_argument('--memory', help='Set QEMU memory', type=int, default=4)
100+
parser.add_argument('--vyconf', help='Execute testsuite with vyconfd', action='store_true',
101+
default=False)
100102

101103
args = parser.parse_args()
102104

@@ -805,6 +807,11 @@ try:
805807
c.sendline('sudo rm -f /usr/libexec/vyos/tests/smoke/cli/test_interfaces_*')
806808
c.expect(op_mode_prompt)
807809

810+
if args.vyconf:
811+
c.sendline('sudo /usr/libexec/vyos/set_vyconf_backend.py --no-prompt &> /dev/null')
812+
c.expect(op_mode_prompt)
813+
log.info('Smoketests will be run using vyconfd/vyos-commitd')
814+
808815
log.info('Executing VyOS smoketests')
809816
c.sendline('/usr/bin/vyos-smoketest')
810817
i = c.expect(['\n +Invalid command:', '\n +Set failed',

0 commit comments

Comments
 (0)