Skip to contentSkip to conversation

tests/avocado/intel_iommu: Add asset hashes to avoid warnings

PATCH In review Thomas Huth 2 participants 4 messages Nov 14, 2023 – Nov 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/avocado/intel_iommu: Add asset hashes to avoid warnings

The intel_iommu test is currently succeeding with annoying warnings. Add the proper asset hashes to avoid those.

---
 tests/avocado/intel_iommu.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tests/avocado/intel_iommu.py +4 -2
index 474d62f6bf..77635ab56c 100644
@@ -54,9 +54,11 @@ def common_vm_setup(self, custom_kernel=None):
             return
 
         kernel_url = self.distro.pxeboot_url + 'vmlinuz'
+        kernel_hash = '5b6f6876e1b5bda314f93893271da0d5777b1f3c'
         initrd_url = self.distro.pxeboot_url + 'initrd.img'
-        self.kernel_path = self.fetch_asset(kernel_url)
-        self.initrd_path = self.fetch_asset(initrd_url)
+        initrd_hash = 'dd0340a1b39bd28f88532babd4581c67649ec5b1'
+        self.kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
+        self.initrd_path = self.fetch_asset(initrd_url, asset_hash=initrd_hash)
 
     def run_and_check(self):
         if self.kernel_path:
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Thomas,

Quoted 1 line · Thomas Huth

The intel_iommu test is currently succeeding with annoying warnings.

nit: you may have precised the nature of the warning or quotes

Quoted 15 lines

Add the proper asset hashes to avoid those.

---
 tests/avocado/intel_iommu.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tests/avocado/intel_iommu.py +0 -0
index 474d62f6bf..77635ab56c 100644
@@ -54,9 +54,11 @@ def common_vm_setup(self, custom_kernel=None):
             return
 
         kernel_url = self.distro.pxeboot_url + 'vmlinuz'

tests/avocado/intel_iommu.py def common_vm_setup(self, custom_kernel=None): · line 64

Quoted 10 lines
tests/avocado/intel_iommu.py +4 -2
+        kernel_hash = '5b6f6876e1b5bda314f93893271da0d5777b1f3c'
         initrd_url = self.distro.pxeboot_url + 'initrd.img'
-        self.kernel_path = self.fetch_asset(kernel_url)
-        self.initrd_path = self.fetch_asset(initrd_url)
+        initrd_hash = 'dd0340a1b39bd28f88532babd4581c67649ec5b1'
+        self.kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
+        self.initrd_path = self.fetch_asset(initrd_url, asset_hash=initrd_hash)
 
     def run_and_check(self):
         if self.kernel_path:

Besides,

Eric

#2 lore raw
Quoted 5 lines · Eric Auger

Hi Thomas,

Quoted 1 line · Thomas Huth

The intel_iommu test is currently succeeding with annoying warnings.

nit: you may have precised the nature of the warning or quotes

The annoying warnings look like this (in the summary):

(031/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu: WARN:
Test passed but there were warnings during execution. Check the log for details. (67.87 s)
(032/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_strict:
WARN: Test passed but there were warnings during execution. Check the log for details. (55.83 s)
(033/174)
tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_strict_cm: WARN: Test passed but there were warnings during execution. Check the log for details. (56.01 s)
(034/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_pt:
WARN: Test passed but there were warnings during execution. Check the log for details. (54.06 s)

... not too helpful to quote them in the commit log, I guess...

Quoted 23 lines
Quoted 23 lines

Add the proper asset hashes to avoid those.

---
  tests/avocado/intel_iommu.py | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
tests/avocado/intel_iommu.py +4 -2
index 474d62f6bf..77635ab56c 100644
@@ -54,9 +54,11 @@ def common_vm_setup(self, custom_kernel=None):
              return
 
          kernel_url = self.distro.pxeboot_url + 'vmlinuz'
+        kernel_hash = '5b6f6876e1b5bda314f93893271da0d5777b1f3c'
          initrd_url = self.distro.pxeboot_url + 'initrd.img'
-        self.kernel_path = self.fetch_asset(kernel_url)
-        self.initrd_path = self.fetch_asset(initrd_url)
+        initrd_hash = 'dd0340a1b39bd28f88532babd4581c67649ec5b1'
+        self.kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
+        self.initrd_path = self.fetch_asset(initrd_url, asset_hash=initrd_hash)
 
Quoted 4 lines

tests/avocado/intel_iommu.py def common_vm_setup(self, custom_kernel=None): · line 64

Quoted 2 lines
tests/avocado/intel_iommu.py +0 -0
      def run_and_check(self):
          if self.kernel_path:

Besides,

Thanks!

Thomas

#3 lore raw

Hi Thomas,

Quoted 25 lines · Thomas Huth
Quoted 5 lines · Eric Auger

Hi Thomas,

Quoted 1 line · Thomas Huth

The intel_iommu test is currently succeeding with annoying warnings.

nit: you may have precised the nature of the warning or quotes

The annoying warnings look like this (in the summary):

 (031/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu:
WARN: Test passed but there were warnings during execution. Check the log for details. (67.87 s)
 (032/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_strict: WARN:
Test passed but there were warnings during execution. Check the log for details. (55.83 s)
 (033/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_strict_cm:
WARN: Test passed but there were warnings during execution. Check the log for details. (56.01 s)
 (034/174) tests/avocado/intel_iommu.py:IntelIOMMU.test_intel_iommu_pt: WARN:
Test passed but there were warnings during execution. Check the log for details. (54.06 s)

Quoted 1 line

... not too helpful to quote them in the commit log, I guess...

Ah OK. Not really helpful indeed ;-)

Eric

Quoted 34 lines
Quoted 28 lines
Quoted 19 lines

Add the proper asset hashes to avoid those.

---
  tests/avocado/intel_iommu.py | 6 ++++--

  1 file changed, 4 insertions(+), 2 deletions(-)
tests/avocado/intel_iommu.py +0 -0
index 474d62f6bf..77635ab56c 100644
@@ -54,9 +54,11 @@ def common_vm_setup(self, custom_kernel=None):

              return
            kernel_url = self.distro.pxeboot_url + 'vmlinuz' +        kernel_hash = '5b6f6876e1b5bda314f93893271da0d5777b1f3c' initrd_url = self.distro.pxeboot_url + 'initrd.img' -        self.kernel_path = self.fetch_asset(kernel_url)

Quoted 8 lines

-        self.initrd_path = self.fetch_asset(initrd_url) +        initrd_hash = 'dd0340a1b39bd28f88532babd4581c67649ec5b1' +        self.kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
+        self.initrd_path = self.fetch_asset(initrd_url, asset_hash=initrd_hash)
        def run_and_check(self):
          if self.kernel_path:

Besides,

Quoted 1 line

Thanks!

 Thomas