Sebastian Goscik
b17ae78d6b
adb_shell: Now handles return codes from ADB
...
As of ADB 1.0.35/Android N, it will return the exit code of the command that it runs
This code handles this scenario as before WA treated a return code from ADB as an
error with ADB.
2016-04-05 15:53:41 +01:00
Sergei Trofimov
391b0b01fc
pylint/pep8 fixes
...
- android/workload: emoved an extra bank line between methods
- trace_cmd: define member attribute inside __init__
- adb_shell: ignore pylint warning about too many branches in this case
2016-04-05 11:36:39 +01:00
setrofim
20861f0ee4
Merge pull request #130 from jimboatarm/master
...
Fix for packages without launch activities
2016-04-05 11:00:50 +01:00
James Hartley
ff5f48b7e7
Fix for packages without launch activities
...
If the package has no defined launch activity you must call the
activity manager in a different way.
2016-04-05 10:24:42 +01:00
setrofim
712c79020d
Merge pull request #126 from ep1cman/master
...
ResourceResolver: Show version number when resource wasn't found.
2016-03-30 11:05:21 +01:00
Sebastian Goscik
12dfbef76b
ResourceResolver: Show version number when resource wasn't found.
...
If the ResourceResolver was looking for a specific version of a
resource and could not find it, this version number is now shown
in the error message.
2016-03-30 11:01:35 +01:00
Sebastian Goscik
b1f607ef70
Merge pull request #125 from setrofim/master
...
trace-cmd fixes
2016-03-24 18:13:16 +00:00
Sergei Trofimov
107e8414bb
trace-cmd: set a minimum bound on trace pull timeout
...
The timeout for the pulling the trace file after the run is being set
based on the time for which the trace was collected. For workloads with
short execution time, but large number of events, the resulting timeout
might be too short. To deal with this, do not let the timout be shorter
than 1 minute.
2016-03-24 16:49:42 +00:00
Sergei Trofimov
4f8b7e9f59
trace-cmd: updating sched_switch parser to handle both formats.
...
Depending on the kernel, sched_switch events may be formatted one of two
different ways in the text output. Previously, we've only handled the
"old" format. This commit updates the parser to handle the new format as
well.
2016-03-24 16:33:29 +00:00
setrofim
a077e7df3c
Merge pull request #124 from ep1cman/master
...
BaseLinuxDevice: gzipped property files are now zcat'ed
2016-03-24 16:30:32 +00:00
Sebastian Goscik
a2257fe1e2
BaseLinuxDevice: gzipped property files are now zcat'ed
...
Before they were cat'ed this gave garbage output for compressed files.
Cat-ing is necessary since not all properties are normal files (sysfs).
2016-03-24 16:28:19 +00:00
Sebastian Goscik
50353d0b8f
Merge pull request #122 from Sticklyman1936/lmbench_update
...
lmbench: Tidied up the code and improved stability
2016-03-24 16:26:52 +00:00
setrofim
0f5621ff66
Merge pull request #123 from Sticklyman1936/sysbench_fix
...
sysbench: use device busybox binary
2016-03-24 16:24:38 +00:00
Sascha Bischoff
2eca77fb02
sysbench: use device busybox binary
...
Use the full path to busybox on the target device as opposed to
assuming it is found on the path.
2016-03-24 16:21:01 +00:00
Sascha Bischoff
3de5b5fe0b
lmbench: Tidied up the code and improved stability
...
This patch tidies up the benchmark code to bring it in line with the
style used in Workload Automation in general. Additionally, the
results from sub-benchmarks are now directly written to a file on the
device as opposed to processing the standard output/error from the
benchmark, which was error prone.
2016-03-24 10:20:32 +00:00
Sebastian Goscik
499a9f4082
Merge pull request #120 from setrofim/master
...
applaunch: pass the location of busybox into the script
2016-03-23 16:32:50 +00:00
Sergei Trofimov
3043506d86
applaunch: pass the location of busybox into the script
...
applaunch creates and deploys an auxilary script in order to collect
precise timings. This script invoked busybox with the assumption that it
is in PATH.
Since recent changes mean that it is no longer deployed to /system/bin,
the busybox in not found. With this commit, the full path to busybox
will be passed into the script's template.
2016-03-23 16:28:18 +00:00
Sebastian Goscik
7db904b359
Merge pull request #119 from ep1cman/master
...
adb_shell: Fixed checking exit codes on Android N
2016-03-23 13:51:17 +00:00
Sebastian Goscik
5abeb7aac2
adb_shell: Fixed checking exit codes on Android N
...
As of android N '\n' is used as the new line separator not '\r\n'.
This fix makes the function detect which is being used by the device.
2016-03-23 13:43:07 +00:00
setrofim
e04691afb9
Merge pull request #118 from ep1cman/master
...
daq: Fixed channel merging
2016-03-21 11:22:10 +00:00
Sebastian Goscik
15ced50640
daq: Fixed channel merging
...
Fixed channel merging when setting merge to True.
Channel merges done by setting a mapping manually were not affected by this bug.
2016-03-21 11:15:30 +00:00
setrofim
1a2e1fdf75
Merge pull request #114 from ep1cman/master
...
dhyrstone: Fixed arm64 binary
2016-03-15 14:40:47 +00:00
Sebastian Goscik
3531dd6d07
dhyrstone: Fixed arm64 binary
...
It was dynamically linked, its is now statically linked
2016-03-15 14:38:18 +00:00
setrofim
cf55f317f8
Merge pull request #113 from ep1cman/master
...
freq_sweep: Improved documentation
2016-03-09 16:52:04 +00:00
Sebastian Goscik
79554a2dbc
freq_sweep: Improved documentation
...
- Added explanation that this instrument does not taskset workloads
- Fixed formatting issue with the agenda example
2016-03-09 16:37:15 +00:00
setrofim
06c232545a
Merge pull request #112 from ep1cman/master
...
dhrystone: Updated executable resolution
2016-03-09 14:57:49 +00:00
Sebastian Goscik
11184750ec
dhrystone: Updated executable resolution
...
Previously it was just using the binary in the dhrystone folder.
Now it uses WA's resource resolution to use the correct ABI.
2016-03-09 14:54:39 +00:00
setrofim
77b221fc5a
Merge pull request #111 from ep1cman/master
...
daq: Added check for duplicate channel labels
2016-03-08 12:54:33 +00:00
Sebastian Goscik
20cd6a9c18
daq: Added check for duplicate channel labels
...
The daq instrument will no longer accept duplicate channel names.
This caused issues where files sent from the daq sever were being
overwritten.
2016-03-07 13:21:40 +00:00
Sebastian Goscik
34d7e7055a
Merge pull request #110 from setrofim/master
...
run command: more usefull error message when specifying non-existing agenda path
2016-02-29 17:28:29 +00:00
Sergei Trofimov
0c1e01cad4
run command: more usefull error message when specifying non-existing agenda path
...
If the specified agenda argument is not found in the file system, WA
assumes it is the name of a workload and would then raise an "extension
not found error", which may be confusing if the user's intension was to
specify a path.
Now, WA will first check that neither path separator, nor a '.' are
present in the agenda argument before assuming it is a workload name, and
will provide a less confusing error in that case.
2016-02-29 17:26:29 +00:00
Sebastian Goscik
a68e46eb0a
Merge pull request #106 from setrofim/master
...
LinuxDevice: fixed reboot.
2016-02-22 10:00:51 +00:00
Sergei Trofimov
203a3f7d07
LinuxDevice: fixed reboot.
...
- Deal with the dropped connection on issuing "reboot"
- Introduced a fixed initial delay before polling for connection to
avoid re-connecting to adevice that is still in the process of
shutting down.
2016-02-22 09:45:42 +00:00
Sebastian Goscik
de133cddb4
Merge pull request #105 from bjackman/check-config-exists
...
Add entry_point check for config file existence
2016-02-18 09:02:46 +00:00
Brendan Jackman
a5c9b94257
Add entry_point check for config file existence
...
This is just to provide a friendlier error message.
Before this commit you get an IOError from imp.load_source.
2016-02-17 17:24:14 +00:00
setrofim
c203ec8921
Merge pull request #103 from ep1cman/fixes
...
ApkWorkload: Fixed runtime permission granting
2016-02-15 11:50:36 +00:00
Sebastian Goscik
de021da300
ApkWorkload: Fixed runtime permission granting
...
"Normal" android permissions are automatically granted and cannot
be changed. Trying to "pm grant" these caused an error, this should
no longer occur.
2016-02-15 11:38:28 +00:00
setrofim
693afa3528
Merge pull request #102 from ep1cman/fixes
...
LinuxDevice: Added as_root to kick_off
2016-02-12 09:55:36 +00:00
Sebastian Goscik
5203188d9e
LinuxDevice: Added as_root to kick_off
2016-02-12 09:54:14 +00:00
Steve Bannister
08663209d6
Fix up lmbench commandline
2016-02-11 17:40:31 +00:00
Sebastian Goscik
232e4b3e65
Merge pull request #101 from setrofim/master
...
Adding taskset capability to lmbench + minor fixes.
2016-02-11 09:35:58 +00:00
Sergei Trofimov
13ebc8ad55
pep8: removed trailling spaces
2016-02-11 08:22:53 +00:00
Sergei Trofimov
759f8db1bc
lmbench: adding taskset support
...
lmbench can now be run pinned to specific CPUs.
2016-02-11 08:22:39 +00:00
setrofim
9a7cccacab
Merge pull request #100 from setrofim/master
...
dhrystone: fix busybox reference.
2016-02-10 17:45:42 +00:00
Sergei Trofimov
288aa764b3
dhrystone: fix busybox reference.
2016-02-10 17:28:33 +00:00
Sebastian Goscik
a32cc0f213
Merge pull request #99 from setrofim/master
...
Minor fixes.
2016-02-10 16:50:17 +00:00
Sergei Trofimov
fdbc2ae372
pylint
2016-02-10 16:39:06 +00:00
Sergei Trofimov
9129a9d2d8
dhrystone: remove reference to sysbench from dhrystone doc.
2016-02-10 16:38:56 +00:00
Sebastian Goscik
cb46c57754
Merge pull request #98 from setrofim/master
...
ipython: switched to using LooseVersion for version checks.
2016-02-10 10:54:00 +00:00
Sebastian Goscik
536c0ffe4e
Merge pull request #94 from ranjeetkumar/master
...
Added GoogleMap : Navigation app by Google Inc.
2016-02-10 09:37:00 +00:00