1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

Pylint fixes

Pylint now checks for trailing new lines, this commit fixes them.
This commit is contained in:
Sebastian Goscik
2016-07-21 16:40:26 +01:00
parent 873bdf0bc7
commit 9707aa6237
77 changed files with 2 additions and 100 deletions

View File

@@ -12,5 +12,3 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

View File

@@ -92,4 +92,3 @@ class Andebench(AndroidUiAutoBenchmark):
results[data['key']] = data['value']
for key, value in results.iteritems():
context.result.add_metric(key, value)

View File

@@ -27,4 +27,3 @@ class AngryBirds(GameWorkload):
"""
package = 'com.rovio.angrybirds'
activity = 'com.rovio.ka3d.App'

View File

@@ -27,4 +27,3 @@ class AngryBirdsRio(GameWorkload):
"""
package = 'com.rovio.angrybirdsrio'
activity = 'com.rovio.ka3d.App'

View File

@@ -60,4 +60,3 @@ class Anomaly2(GameWorkload):
def teardown(self, context):
self.device.execute('am force-stop {}'.format(self.package))

View File

@@ -100,4 +100,3 @@ class Audio(Workload):
def _download_audio_file(self):
self.logger.debug('Downloading audio file from {}'.format(DEFAULT_AUDIO_FILE_URL))
urllib.urlretrieve(DEFAULT_AUDIO_FILE_URL, self.audio_file)

View File

@@ -105,4 +105,3 @@ class ChromeAutotest(Workload):
parts = [self.test_that, self.device.host, self.test]
parts.append(str(self.test_that_args))
return ' '.join(parts)

View File

@@ -71,7 +71,7 @@ class Camerarecord(UiAutomatorWorkload):
# Collect framestats
framestats_file = self.device.path.join(self.device.working_directory,
'framestats.txt')
self.device.execute('dumpsys gfxinfo {} > {}'\
self.device.execute('dumpsys gfxinfo {} > {}'
.format(self.package, framestats_file))
self.device.pull_file(framestats_file,
context.output_directory,

View File

@@ -27,4 +27,3 @@ class CastleMaster(GameWorkload):
package = 'com.alphacloud.castlemaster'
activity = 'com.unity3d.player.UnityPlayerActivity'
install_timeout = 500

View File

@@ -68,5 +68,3 @@ class Cfbench(AndroidUiAutoBenchmark):
else:
value = int(child.text)
context.result.add_metric(child.attrib['name'], value)

View File

@@ -155,4 +155,3 @@ class Glb(AndroidUiAutoBenchmark):
metric = metric + '_' + str(match_count // 2)
context.result.add_metric(metric, value, units)
match_count += 1

View File

@@ -35,5 +35,3 @@ class GoogleMap(GameWorkload):
package = 'com.google.android.apps.maps'
activity = 'com.google.android.maps.MapsActivity'
loading_time = 20

View File

@@ -39,4 +39,3 @@ class GunBros(GameWorkload):
ondevice_asset_root = '/data'
loading_time = 20
install_timeout = 500

View File

@@ -63,4 +63,3 @@ class Nenamark(AndroidBenchmark):
score = match.group(1)
context.result.add_metric('nenamark score', score)
break

View File

@@ -119,4 +119,3 @@ class PowerLoadtest(Workload):
parts.append('-b {}'.format(self.board))
parts.append(str(self.test_that_args))
return ' '.join(parts)

View File

@@ -109,4 +109,3 @@ class Quadrant(AndroidUiAutoBenchmark):
TYPE_UNITS[test_type])
context.result.add_metric(data['metric'] + '_score', data['score'])
break

View File

@@ -31,5 +31,3 @@ class RealRacing3(GameWorkload):
loading_time = 90
asset_file = 'com.ea.games.r3_row.tar.gz'
saved_state_file = 'rr3-save.tar.gz'

View File

@@ -45,4 +45,3 @@ class Sqlite(AndroidUiAutoBenchmark):
except ValueError:
self.logger.warn("Reported results do not match expected format (seconds)")
context.result.add_metric(metric, value, 'Seconds', lower_is_better=True)

View File

@@ -43,4 +43,3 @@ class TheChase(ApkWorkload):
def run(self, context):
time.sleep(self.duration)

View File

@@ -233,4 +233,3 @@ class VellamoResultParser(HTMLParser):
self.benchmarks[-1].add_metric(data)
else:
self.failed = True

View File

@@ -135,4 +135,3 @@ class VideoWorkload(Workload):
for resolution in self.parameters['resolution'].allowed_values:
if resolution in filename:
self.video_files[resolution].append(os.path.join(self.video_directory, filename))