mirror of
https://github.com/systemd/systemd
synced 2025-10-02 18:24:46 +02:00
Compare commits
2 Commits
637b3904c1
...
998bb9600e
Author | SHA1 | Date | |
---|---|---|---|
![]() |
998bb9600e | ||
![]() |
e1311b10f8 |
10
.github/workflows/linter.yml
vendored
10
.github/workflows/linter.yml
vendored
@ -58,11 +58,6 @@ jobs:
|
|||||||
mkosi box -- mypy --version
|
mkosi box -- mypy --version
|
||||||
mkosi box -- mypy src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
mkosi box -- mypy src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
||||||
|
|
||||||
- name: Run ruff check
|
|
||||||
run: |
|
|
||||||
mkosi box -- ruff --version
|
|
||||||
mkosi box -- ruff check src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
|
||||||
|
|
||||||
- name: Run ruff format
|
- name: Run ruff format
|
||||||
run: |
|
run: |
|
||||||
mkosi box -- ruff --version
|
mkosi box -- ruff --version
|
||||||
@ -72,6 +67,11 @@ jobs:
|
|||||||
mkosi box -- ruff format --check --quiet --diff src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
mkosi box -- ruff format --check --quiet --diff src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Run ruff check
|
||||||
|
run: |
|
||||||
|
mkosi box -- ruff --version
|
||||||
|
mkosi box -- ruff check src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/test/generate-sym-test.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py
|
||||||
|
|
||||||
- name: Configure meson
|
- name: Configure meson
|
||||||
run: mkosi box -- env CC=clang CXX=clang++ meson setup -Dlocalegen-path=/usr/bin/locale-gen -Dcompat-mutable-uid-boundaries=true build
|
run: mkosi box -- env CC=clang CXX=clang++ meson setup -Dlocalegen-path=/usr/bin/locale-gen -Dcompat-mutable-uid-boundaries=true build
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ TEST(cg_create) {
|
|||||||
|
|
||||||
log_info("Paths for test:\n%s\n%s", test_a, test_b);
|
log_info("Paths for test:\n%s\n%s", test_a, test_b);
|
||||||
|
|
||||||
/* Possibly clean up left-overs from aboted previous runs */
|
/* Possibly clean up left-overs from aborted previous runs */
|
||||||
(void) cg_trim(test_a, /* delete_root= */ true);
|
(void) cg_trim(test_a, /* delete_root= */ true);
|
||||||
(void) cg_trim(test_b, /* delete_root= */ true);
|
(void) cg_trim(test_b, /* delete_root= */ true);
|
||||||
|
|
||||||
@ -113,6 +113,9 @@ TEST(cg_create) {
|
|||||||
|
|
||||||
ASSERT_OK(cg_trim(test_a, true));
|
ASSERT_OK(cg_trim(test_a, true));
|
||||||
ASSERT_ERROR(cg_trim(test_b, true), EBUSY);
|
ASSERT_ERROR(cg_trim(test_b, true), EBUSY);
|
||||||
|
|
||||||
|
ASSERT_OK_ZERO(cg_attach(here, 0));
|
||||||
|
ASSERT_OK(cg_trim(test_b, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(id) {
|
TEST(id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user