Merge ~canonical-kernel-team/+git/autotest-client-tests:portias/fix-xlnx into ~canonical-kernel-team/+git/autotest-client-tests:master

Proposed by Portia Stephens
Status: Merged
Approved by: Po-Hsu Lin
Approved revision: 101d2c8ba3674d898c44d77f1e84ae34c8db84d6
Merge reported by: Po-Hsu Lin
Merged at revision: 101d2c8ba3674d898c44d77f1e84ae34c8db84d6
Proposed branch: ~canonical-kernel-team/+git/autotest-client-tests:portias/fix-xlnx
Merge into: ~canonical-kernel-team/+git/autotest-client-tests:master
Diff against target: 42 lines (+8/-5)
2 files modified
ubuntu_xilinx/lib/run-test (+8/-0)
ubuntu_xilinx/ubuntu_xilinx.py (+0/-5)
Reviewer Review Type Date Requested Status
Po-Hsu Lin Approve
Review via email: mp+448519@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

LGTM.

review: Approve
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Applied and pushed, tests restarted.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ubuntu_xilinx/lib/run-test b/ubuntu_xilinx/lib/run-test
2index 89dd4d3..1cd64d5 100755
3--- a/ubuntu_xilinx/lib/run-test
4+++ b/ubuntu_xilinx/lib/run-test
5@@ -131,6 +131,10 @@ function _set_globals()
6 RT_XILINX_BOARD="zcu106"
7 fi
8
9+ if [ $(cat /proc/device-tree/compatible | grep -ao -e kr26 | head -1) ] ; then
10+ RT_XILINX_BOARD="kr260"
11+ fi
12+
13
14 # Compute the model revision
15 RT_XILINX_REV=${RT_XILINX_MODEL#* Rev}
16@@ -190,6 +194,10 @@ function _install_deps()
17 rt_echo "Installing depedencies for Focal"
18 sudo snap install \
19 xlnx-config --classic --channel=1.x
20+ elif [ ${RT_OS_CODENAME} == "Jammy" ] ; then
21+ rt_echo "Installing depedencies for Jammy"
22+ sudo snap install \
23+ xlnx-config --classic
24 fi
25 }
26
27diff --git a/ubuntu_xilinx/ubuntu_xilinx.py b/ubuntu_xilinx/ubuntu_xilinx.py
28index f362792..af14a86 100644
29--- a/ubuntu_xilinx/ubuntu_xilinx.py
30+++ b/ubuntu_xilinx/ubuntu_xilinx.py
31@@ -7,11 +7,6 @@ class ubuntu_xilinx(test.test):
32 def initialize(self):
33 pass
34
35- def setup(self):
36- snap_pkgs = ['xlnx-config']
37- cmd = 'snap install --classic ' + ' '.join(snap_pkgs)
38- utils.system_output(cmd, retain_output=True)
39-
40 def run_once(self, test_name):
41 cmd = os.path.join(self.bindir, 'tests', test_name)
42 utils.system_output(cmd, retain_output=True)

Subscribers

People subscribed via source and target branches

to all changes: