skia2/tools/skpbench/_os_path.py
Chris Dalton 9278f10795 Add "AllPathsVolatile" skpbench bots
Also adds GalaxyS20 to the mix, which wasn't running skpbench
previously.

Also removes the skpbench logic to fail if we don't recognize the
hardware or have specific scripts for it. We don't have time to reverse
engineer every new piece of hardware we want to run on and the general
android script is quite helpful already.

Bug: skia:10419
Change-Id: I0e139cdd4bc2e7ca0e2e14c715d319664fa8c949
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/319143
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-09-24 19:50:34 +00:00

25 lines
598 B
Python

# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from os import path
import glob
def join(*pathnames):
return path.join(*pathnames)
def basename(pathname):
return pathname.basename(pathname)
def find_skps(skps):
pathnames = list()
for skpglob in skps:
for skp in glob.iglob(skpglob):
if (path.isdir(skp)):
pathnames.extend(glob.iglob(path.join(skp, '*.skp')))
pathnames.extend(glob.iglob(path.join(skp, '*.mskp')))
else:
pathnames.append(skp)
return pathnames