Skip to content

Commit

Permalink
Merge pull request #2689 from akanksha216/add_upstream_ftrace
Browse files Browse the repository at this point in the history
 add_upstream_ftrace
  • Loading branch information
PraveenPenguin authored Nov 30, 2023
2 parents c753fe0 + a371710 commit 5014ced
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/kselftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def setUp(self):
if self.run_type == 'upstream':
location = self.params.get('location', default='https://github.c'
'om/torvalds/linux/archive/master.zip')
git_branch = self.params.get('branch', default='master')
path = ''
match = next(
(ext for ext in [".zip", ".tar"] if ext in location), None)
Expand All @@ -109,7 +110,7 @@ def setUp(self):
archive.extract(tarball, self.workdir)
path = glob.glob(os.path.join(self.workdir, "linux*"))
else:
git.get_repo(location, destination_dir=self.workdir)
git.get_repo(location, branch=git_branch, destination_dir=self.workdir)
path = glob.glob(self.workdir)
for l_dir in path:
if os.path.isdir(l_dir) and 'Makefile' in os.listdir(l_dir):
Expand Down
9 changes: 9 additions & 0 deletions kernel/kselftest.py.data/ftrace_powerpc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
component: !mux
ftrace:
comp: 'ftrace'

run_type: !mux
upstream:
type: 'upstream'
location: 'git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git'
branch: 'merge'
3 changes: 3 additions & 0 deletions kernel/kselftest.py.data/trace_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ component: !mux
run_type: !mux
distro:
type: 'distro'
upstream:
type: 'upstream'
location: 'https://github.com/torvalds/linux/archive/master.zip'

0 comments on commit 5014ced

Please sign in to comment.