on xenial help sign in
Prepend /sbin/ to initctl calls

My phablet user does not have /sbin/ in path and thus this calls fail

commit0e43d81fd9ec73daa837dab7dde57780a1e1174b authorAlbert Astals <albert.astals@canonical.com> dateFri 24 Jan 2014, 10:30 (13 years ago) parent4442366
1 file changed+3−3
tests/autopilot/unity8/process_helpers.py+3−3
tests/autopilot/unity8/process_helpers.py+3−3
@@ -110,7 +110,7 @@ def restart_unity(*args):
110110 status = _get_unity_status()
111111 if "start/" in status:
112112 try:
113− output = subprocess.check_output(['initctl', 'stop', 'unity8'])
113+ output = subprocess.check_output(['/sbin/initctl', 'stop', 'unity8'])
114114 logger.info(output)
115115 except subprocess.CalledProcessError as e:
116116 e.args += (
@@ -119,7 +119,7 @@ def restart_unity(*args):
119119 raise
120120
121121 try:
122− command = ['initctl', 'start', 'unity8'] + list(args)
122+ command = ['/sbin/initctl', 'start', 'unity8'] + list(args)
123123 output = subprocess.check_output(
124124 command,
125125 stderr=subprocess.STDOUT,
@@ -137,7 +137,7 @@ def restart_unity(*args):
137137def _get_unity_status():
138138 try:
139139 return subprocess.check_output([
140− 'initctl',
140+ '/sbin/initctl',
141141 'status',
142142 'unity8'
143143 ])