brillo: Remove root from tests.
Since ADBHost runs adb commands as root anyways, there's no need to
explicity have 'su root' in the command.
BUG:b/28045203
TEST=These tests pass:
- brillo_PingTest
- brillo_PlaybackAudioTest.opensles.must
- brillo_RecordingAudioTest.opensles.must
Change-Id: I99e6fc4a367b2677aebf2cd9c97eb712ca5ce654
Reviewed-on: https://chromium-review.googlesource.com/337348
Commit-Ready: Ralph Nathan <ralphnathan@chromium.org>
Tested-by: Ralph Nathan <ralphnathan@chromium.org>
Reviewed-by: David Pursell <dpursell@chromium.org>
diff --git a/server/brillo/host_utils.py b/server/brillo/host_utils.py
index e1bf1c1..db7b02f 100644
--- a/server/brillo/host_utils.py
+++ b/server/brillo/host_utils.py
@@ -82,7 +82,7 @@
sleep_interval=1, timeout=300,
desc='shill was not started by init')
logging.info('Connecting to wifi')
- wifi_cmd = 'su root shill_setup_wifi --ssid=%s' % ssid
+ wifi_cmd = 'shill_setup_wifi --ssid=%s' % ssid
if passphrase:
wifi_cmd += ' --passphrase=%s' % passphrase
host.run(wifi_cmd)
@@ -98,5 +98,5 @@
host.run('sed \'s/service weaved \/system\/bin\/weaved '
'--disable_privet/service weaved \/system\/bin\/weaved/\' '
'-i /system/etc/init/weaved.rc')
- host.run('su root stop weaved')
- host.run('su root start weaved')
+ host.run('stop weaved')
+ host.run('start weaved')