diff options
-rwxr-xr-x | bin/network_reconnect_resume_test.py | 4 | ||||
-rw-r--r-- | units/ethernet/jobs.pxu | 1 | ||||
-rw-r--r-- | units/suspend/suspend.pxu | 4 | ||||
-rw-r--r-- | units/wireless/wireless-connection-manual.pxu | 1 |
4 files changed, 8 insertions, 2 deletions
diff --git a/bin/network_reconnect_resume_test.py b/bin/network_reconnect_resume_test.py index 0d8062b..17a220e 100755 --- a/bin/network_reconnect_resume_test.py +++ b/bin/network_reconnect_resume_test.py @@ -42,7 +42,7 @@ def get_wifi_reconnect_times(): """ Returns a list of all the timestamps for wifi reconnects. """ - data = subprocess.check_output(['sudo','dmesg'], universal_newlines=True) + data = subprocess.check_output(['dmesg'], universal_newlines=True) syntax = re.compile(r"\[(.*)\] wlan.* associated") results = re.findall(syntax, data) return map(float, results) @@ -52,7 +52,7 @@ def get_wired_reconnect_times(): """ Returns a list of all the timestamps for wired reconnects. """ - data = subprocess.check_output(['sudo','dmesg'], universal_newlines=True) + data = subprocess.check_output(['dmesg'], universal_newlines=True) syntax = re.compile(r"\[(.*)\].*eth.* Link is [uU]p") results = re.findall(syntax, data) return map(float, results) diff --git a/units/ethernet/jobs.pxu b/units/ethernet/jobs.pxu index 244cca6..571c03d 100644 --- a/units/ethernet/jobs.pxu +++ b/units/ethernet/jobs.pxu @@ -394,6 +394,7 @@ depends: suspend/suspend_advanced_auto estimated_duration: 1.2 requires: device.category == 'NETWORK' +user: root command: network_reconnect_resume_test.py -t 10 -d wired _summary: Network reconnect resume test (wired) _description: diff --git a/units/suspend/suspend.pxu b/units/suspend/suspend.pxu index 56960be..73a56dc 100644 --- a/units/suspend/suspend.pxu +++ b/units/suspend/suspend.pxu @@ -1320,6 +1320,7 @@ id: suspend/wifi_resume_time depends: suspend/suspend_advanced_auto requires: device.category == 'WIRELESS' +user: root command: network_reconnect_resume_test.py -t 90 -d wifi estimated_duration: 0.530 _description: @@ -1333,6 +1334,7 @@ estimated_duration: 1.2 depends: suspend/suspend_advanced_auto requires: device.category == 'WIRELESS' +user: root command: network_reconnect_resume_test.py -t 90 -d wifi _description: Checks the length of time it takes to reconnect an existing wifi connection @@ -1345,6 +1347,7 @@ depends: suspend/suspend_advanced_auto estimated_duration: 1.2 requires: device.category == 'NETWORK' +user: root command: network_reconnect_resume_test.py -t 10 -d wired _description: Checks the length of time it takes to reconnect an existing wired connection @@ -1357,6 +1360,7 @@ depends: suspend/suspend_advanced_auto estimated_duration: 1.2 requires: device.category == 'NETWORK' +user: root command: network_reconnect_resume_test.py -t 10 -d wired _description: Checks the length of time it takes to reconnect an existing wired connection diff --git a/units/wireless/wireless-connection-manual.pxu b/units/wireless/wireless-connection-manual.pxu index d06b260..70ad25f 100644 --- a/units/wireless/wireless-connection-manual.pxu +++ b/units/wireless/wireless-connection-manual.pxu @@ -203,6 +203,7 @@ estimated_duration: 1.2 depends: suspend/suspend_advanced_auto requires: device.category == 'WIRELESS' +user: root command: network_reconnect_resume_test.py -t 90 -d wifi _summary: Network reconnect resume test (wifi) _description: |