Skip to content

test: refactor container_run_systemd_linux_test.go to use Tigron#4708

Merged
ChengyuZhu6 merged 1 commit intocontainerd:mainfrom
JoonsooWon:issues_4613_container_run_systemd_linux_test.go
Jan 20, 2026
Merged

test: refactor container_run_systemd_linux_test.go to use Tigron#4708
ChengyuZhu6 merged 1 commit intocontainerd:mainfrom
JoonsooWon:issues_4613_container_run_systemd_linux_test.go

Conversation

@JoonsooWon
Copy link
Contributor

Switch to Tigron testing framework

related : #4613

@JoonsooWon
Copy link
Contributor Author

CI is failing at the moment. I’ll fix it and update this PR shortly.


base.Cmd("inspect", "--format", "{{json .Config.Labels}}", containerName).AssertOutContains("SIGRTMIN+3")
testCase.Cleanup = func(data test.Data, helpers test.Helpers) {
containeName := data.Labels().Get("containerName")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please correct other similar typos as well.

Suggested change
containeName := data.Labels().Get("containerName")
containerName := data.Labels().Get("containerName")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the typos.
I’ve fixed it

func TestRunWithSystemdTrueDisabled(t *testing.T) {
if runtime.GOARCH != "amd64" {
t.Skip("This test is currently broken on arm with no emulation, as the Systemd image being used is amd64 only")
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use require.Amd64?

Please verify whether other sections can also be rewritten.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out.
I wasn’t aware of require.Amd64
I've fixed it

@haytok haytok added this to the v2.3.0 milestone Jan 19, 2026
@JoonsooWon JoonsooWon force-pushed the issues_4613_container_run_systemd_linux_test.go branch 2 times, most recently from 82a18de to 04da5b9 Compare January 19, 2026 13:26
Signed-off-by: Joonsoo Won <wonjs0116@gmail.com>
@JoonsooWon JoonsooWon force-pushed the issues_4613_container_run_systemd_linux_test.go branch from 04da5b9 to 43d3536 Compare January 19, 2026 14:28
@JoonsooWon
Copy link
Contributor Author

CI is failing at the moment. I’ll fix it and update this PR shortly.

I've fixed it.

@haytok
Could you review this PR again?
Thanks.

Copy link
Member

@ChengyuZhu6 ChengyuZhu6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ChengyuZhu6 ChengyuZhu6 requested a review from haytok January 20, 2026 06:47
Copy link
Member

@haytok haytok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoonsooWon LGTM, Thanks!

@ChengyuZhu6 ChengyuZhu6 merged commit e080ac6 into containerd:main Jan 20, 2026
61 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants