Skip to content

tests: Fix test_sudo__case_sensitive_false: use /bin/ls and /bin/cat instead of less/more#8449

Merged
alexey-tikhonov merged 1 commit intoSSSD:masterfrom
madhuriupadhye:trust_fix
Feb 24, 2026
Merged

tests: Fix test_sudo__case_sensitive_false: use /bin/ls and /bin/cat instead of less/more#8449
alexey-tikhonov merged 1 commit intoSSSD:masterfrom
madhuriupadhye:trust_fix

Conversation

@madhuriupadhye
Copy link
Copy Markdown
Contributor

@madhuriupadhye madhuriupadhye commented Feb 13, 2026

test_sudo__case_sensitive_false runs sudo via su -c (no TTY). less and more exit
non-zero without a terminal, so the test failed. Switched to /bin/ls and /bin/cat
so the run is non-interactive; the test still checks case-insensitive sudo rule
merging for user-1 and USER-1.

Assisted-by: Cursor (Composer-1.5)

@madhuriupadhye madhuriupadhye marked this pull request as draft February 13, 2026 12:18
gemini-code-assist[bot]

This comment was marked as outdated.

@madhuriupadhye madhuriupadhye changed the title tests: Add dirsrv stability fixture and note for IPA trust teardown f… tests: Fix test_sudo__case_sensitive_false: use /bin/ls and /bin/cat instead of less/more Feb 24, 2026
@madhuriupadhye madhuriupadhye force-pushed the trust_fix branch 2 times, most recently from 2765742 to c5d9b9e Compare February 24, 2026 06:59
@madhuriupadhye madhuriupadhye marked this pull request as ready for review February 24, 2026 07:58
@alexey-tikhonov
Copy link
Copy Markdown
Member

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request effectively addresses the issue of less and more commands failing in a non-TTY environment by replacing them with ls and cat. The changes are consistent across the test setup, steps, expected results, and the actual test logic. This improves the reliability of the test_sudo__case_sensitive_false test case.

@alexey-tikhonov
Copy link
Copy Markdown
Member

Thanks, ACK.

@madhuriupadhye, please identify and set proper 'backport-to-*' labels.

@alexey-tikhonov alexey-tikhonov self-assigned this Feb 24, 2026
Copy link
Copy Markdown
Contributor

@shridhargadekar shridhargadekar left a comment

Choose a reason for hiding this comment

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

lgtm

… of less/more

test_sudo__case_sensitive_false runs sudo via su -c (no TTY). less and more exit
non-zero without a terminal, so the test failed. Switched to /bin/ls and /bin/cat
so the run is non-interactive; the test still checks case-insensitive sudo rule
merging for user-1 and USER-1.

Assisted-by: Cursor (Composer-1.5)

Signed-off-by: Madhuri Upadhye <mupadhye@redhat.com>
Reviewed-by: Alexey Tikhonov <atikhono@redhat.com>
Reviewed-by: Shridhar Gadekar <sgadekar@redhat.com>
@sssd-bot
Copy link
Copy Markdown
Contributor

The pull request was accepted by @alexey-tikhonov with the following PR CI status:


🟢 CodeQL (success)
🟢 osh-diff-scan:fedora-rawhide-x86_64:upstream (success)
🟢 rpm-build:centos-stream-10-x86_64:upstream (success)
🟢 rpm-build:fedora-42-x86_64:upstream (success)
🟢 rpm-build:fedora-43-x86_64:upstream (success)
🟢 rpm-build:fedora-44-x86_64:upstream (success)
🟢 rpm-build:fedora-rawhide-x86_64:upstream (success)
🟢 Analyze (target) / cppcheck (success)
🟢 ci / intgcheck (centos-10) (success)
🟢 ci / intgcheck (fedora-42) (success)
🟢 ci / intgcheck (fedora-43) (success)
🟢 ci / intgcheck (fedora-44) (success)
🟢 ci / intgcheck (fedora-45) (success)
🟢 ci / prepare (success)
🟢 ci / system (centos-10) (success)
🟢 ci / system (fedora-42) (success)
🟢 ci / system (fedora-43) (success)
🟢 ci / system (fedora-44) (success)
🟢 ci / system (fedora-45) (success)
➖ Coverity scan / coverity (skipped)
🟢 Static code analysis / codeql (success)
🟢 Static code analysis / pre-commit (success)
🟢 Static code analysis / python-system-tests (success)


There are unsuccessful or unfinished checks. Make sure that the failures are not related to this pull request before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants