~cypressyew/qa-regression-testing:phlin/text-mode-for-config-gz

Last commit made on 2023-05-25
Get this branch:
git clone -b phlin/text-mode-for-config-gz https://git.launchpad.net/~cypressyew/qa-regression-testing
Only Po-Hsu Lin can upload to this branch. If you are Po-Hsu Lin please log in for upload directions.

Branch merges

Branch information

Name:
phlin/text-mode-for-config-gz
Repository:
lp:~cypressyew/qa-regression-testing

Recent commits

830395e... by Po-Hsu Lin

scripts/test-kernel-security.py: use text mode for config.gz

While testing J-xilinx kernel, all of the KernelSecurityConfigTests
are failing with:

Traceback (most recent call last):
  File "./test-kernel-security.py", line 2215, in test_010_kaslr_config
    self.assertKernelConfig('RANDOMIZE_BASE', expected)
  File "./test-kernel-security.py", line 231, in assertKernelConfig
    self.assertKernelConfigSet(name)
  File "./test-kernel-security.py", line 217, in assertKernelConfigSet
    self.assertTrue(self._test_config(name),
  File "./test-kernel-security.py", line 199, in _test_config
    setting = self._get_config(name)
  File "./test-kernel-security.py", line 193, in _get_config
    if line.startswith('CONFIG_%s=' % (name)):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

This is because the /proc/config.gz was not opened in text mode with
the python gzip module. Set it to 'rt' (text mode) to fix this issue.

Signed-off-by: Po-Hsu Lin <email address hidden>

Succeeded
[SUCCEEDED] imagemagick:0 (build)
[SUCCEEDED] imagemagick:1 (build)
[SUCCEEDED] imagemagick:2 (build)
[SUCCEEDED] gcc-security:0 (build)
[SUCCEEDED] gcc-security:1 (build)
[SUCCEEDED] gcc-security:2 (build)
[SUCCEEDED] glibc:0 (build)
[SUCCEEDED] glibc:1 (build)
[SUCCEEDED] glibc:2 (build)
[SUCCEEDED] gnupg:0 (build)
[SUCCEEDED] gnupg:1 (build)
[SUCCEEDED] gnupg:2 (build)
[SUCCEEDED] sudo:0 (build)
[SUCCEEDED] sudo:1 (build)
[SUCCEEDED] sudo:2 (build)
[SUCCEEDED] git:0 (build)
[SUCCEEDED] git:1 (build)
[SUCCEEDED] git:2 (build)
[SUCCEEDED] ghostscript:0 (build)
[SUCCEEDED] ghostscript:1 (build)
[SUCCEEDED] ghostscript:2 (build)
[SUCCEEDED] busybox:0 (build)
[SUCCEEDED] busybox:1 (build)
[SUCCEEDED] busybox:2 (build)
[SUCCEEDED] imagemagick:0 (build)
[SUCCEEDED] imagemagick:1 (build)
[SUCCEEDED] imagemagick:2 (build)
[SUCCEEDED] gcc-security:0 (build)
[SUCCEEDED] gcc-security:1 (build)
[SUCCEEDED] gcc-security:2 (build)
[SUCCEEDED] glibc:0 (build)
[SUCCEEDED] glibc:1 (build)
[SUCCEEDED] glibc:2 (build)
[SUCCEEDED] gnupg:0 (build)
[SUCCEEDED] gnupg:1 (build)
[SUCCEEDED] gnupg:2 (build)
[SUCCEEDED] sudo:0 (build)
[SUCCEEDED] sudo:1 (build)
[SUCCEEDED] sudo:2 (build)
[SUCCEEDED] git:0 (build)
[SUCCEEDED] git:1 (build)
[SUCCEEDED] git:2 (build)
[SUCCEEDED] ghostscript:0 (build)
[SUCCEEDED] ghostscript:1 (build)
[SUCCEEDED] ghostscript:2 (build)
[SUCCEEDED] busybox:0 (build)
[SUCCEEDED] busybox:1 (build)
[SUCCEEDED] busybox:2 (build)
[SUCCEEDED] imagemagick:0 (build)
[SUCCEEDED] imagemagick:1 (build)
[SUCCEEDED] imagemagick:2 (build)
[SUCCEEDED] gcc-security:0 (build)
[SUCCEEDED] gcc-security:1 (build)
[SUCCEEDED] gcc-security:2 (build)
[SUCCEEDED] glibc:0 (build)
[SUCCEEDED] glibc:1 (build)
[SUCCEEDED] glibc:2 (build)
[SUCCEEDED] gnupg:0 (build)
[SUCCEEDED] gnupg:1 (build)
[SUCCEEDED] gnupg:2 (build)
[SUCCEEDED] sudo:0 (build)
[SUCCEEDED] sudo:1 (build)
[SUCCEEDED] sudo:2 (build)
[SUCCEEDED] git:0 (build)
[SUCCEEDED] git:1 (build)
[SUCCEEDED] git:2 (build)
[SUCCEEDED] ghostscript:0 (build)
[SUCCEEDED] ghostscript:1 (build)
[SUCCEEDED] ghostscript:2 (build)
[SUCCEEDED] busybox:0 (build)
[SUCCEEDED] busybox:1 (build)
[SUCCEEDED] busybox:2 (build)
172 of 72 results
88a4d4e... by Marc Deslauriers

updated mysql test notes now that wordpress packages in jammy is fixed

93c0547... by Eduardo Barretto

Update openjdk tests and notes

8ab9a03... by Steve Beattie

launchpad.yaml: enable glibc tests in lpci

Signed-off-by: Steve Beattie <email address hidden>

20db638... by Steve Beattie

test-glibc + test-glibc-security: convert to python3

Signed-off-by: Steve Beattie <email address hidden>

a0489c3... by Steve Beattie

test-busybox + lpci runner: enable tests in lpci, skipping where necessary

Steve Beattie (7):
  * [0012d86b] test-busybox.py: switch to python3
  * [4c70d4a0] test-busybox.py: tests requires root due to udhcpc
  * [fa8ea339] test-busybox.py: older busybox wget doesn't support https
  * [4550df63] test-busybox.py: fix bitwise op test across all releases
  * [175e1a2b] lpcraft-runner: export env var for skipping tests in lpci
  * [841581fe] scripts/README.md: add notes on lpci
  * [14a0bc5f] .launchpad.yaml: add busybox QRT script to CI tests

MR: https://code.launchpad.net/~sbeattie/qa-regression-testing/+git/qa-regression-testing/+merge/442935
Signed-off-by: Steve Beattie <email address hidden>
Acked-by: Alex Murray <email address hidden>

04418c0... by Marc Deslauriers

test-cups-filters.py: update to python3

19cd5af... by Marc Deslauriers

fix mysql testing notes for current releases

12b4c40... by Marc Deslauriers

python 2.x is no longer on lunar, adjust scripts.

install-packages and packages-helper will use python3 on focal+

14a0bc5... by Steve Beattie

.launchpad.yaml: add busybox QRT script to CI tests

Signed-off-by: Steve Beattie <email address hidden>