mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
common: rename _src_ to _source_ everywhere
This commit is contained in:
7
test-gdb
7
test-gdb
@@ -14,7 +14,6 @@ class Main(common.LkmcCliFunction):
|
||||
)
|
||||
self.add_argument(
|
||||
'tests',
|
||||
metavar='tests',
|
||||
nargs='*',
|
||||
help='''\
|
||||
If given, run only the given tests. Otherwise, run all tests,
|
||||
@@ -28,16 +27,16 @@ found by searching for the Python test files.
|
||||
if self.env['arch'] in self.env['crosstool_ng_supported_archs']:
|
||||
if self.env['tests'] == []:
|
||||
test_scripts_noext = []
|
||||
for f in os.listdir(self.env['baremetal_src_dir']):
|
||||
for f in os.listdir(self.env['baremetal_source_dir']):
|
||||
base, ext = os.path.splitext(f)
|
||||
if ext == '.py':
|
||||
test_scripts_noext.append(base)
|
||||
for root, dirs, files in os.walk(os.path.join(self.env['baremetal_src_dir'], 'arch', self.env['arch'])):
|
||||
for root, dirs, files in os.walk(os.path.join(self.env['baremetal_source_dir'], 'arch', self.env['arch'])):
|
||||
for f in files:
|
||||
base, ext = os.path.splitext(f)
|
||||
if ext == '.py':
|
||||
full_path = os.path.join(root, base)
|
||||
relpath = os.path.relpath(full_path, self.env['baremetal_src_dir'])
|
||||
relpath = os.path.relpath(full_path, self.env['baremetal_source_dir'])
|
||||
test_scripts_noext.append(relpath)
|
||||
else:
|
||||
test_scripts_noext = self.env['tests']
|
||||
|
||||
Reference in New Issue
Block a user