]> xenbits.xensource.com Git - osstest.git/commitdiff
ts-xtf-install: Install python symlink
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 15 Aug 2023 12:37:43 +0000 (13:37 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 28 Mar 2024 16:51:52 +0000 (16:51 +0000)
ts-xtf-run does run ./xtf-runner, which run `python` in its shebang.
So install a `python` symlink to `python3`.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
ts-xtf-install

index a64fd3299e31b0e85c7512b5d4500541d24ed9ab..fea737ff9656292f5cf33625e07f379e1c97b4a1 100755 (executable)
@@ -28,6 +28,11 @@ $whhost ||= 'host';
 
 our $ho= selecthost($whhost);
 
+sub packages () {
+    if ($ho->{Suite} !~ m/wheezy|jessie|stretch|buster/) {
+        target_install_packages($ho, qw(python-is-python3));
+    }
+}
 sub extract () {
     my %distpath;
 
@@ -35,4 +40,5 @@ sub extract () {
                                $r{xtfbuildjob}, \%distpath);
 }
 
+packages();
 extract();