Skip to content

Commit c09d735

Browse files
added missing restart test for systemd systems
1 parent c390e83 commit c09d735

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tasks/selenium.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
- set_fact:
4242
selenium_system_manager: sysv
43-
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version[0:4] != '16.04'
43+
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version[0:5] != '16.04'
4444

4545
######################################################################
4646
############### SYSV INIT ################

tests/check_install.yml

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
when: selenium_system_manager == 'sysv'
3737
tags: [test]
3838

39+
- name: Test restart selenium server for systemd
40+
service: name=selenium state=restarted
41+
when: selenium_system_manager == 'systemd'
42+
tags: [test]
43+
3944
- name: Pause cause i did not find a good way to wait for server to be running with systemd unit files
4045
pause: seconds=10
4146
when: selenium_system_manager == 'systemd'

0 commit comments

Comments
 (0)