test_chcon::valid_reference_repeated_reference fails on `kind: InvalidInput, message: "Invalid argument"`
Open
Nobody has claimed this yet.
U - chcon
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
---- test_chcon::valid_reference_repeated_reference stdout ----
touch: /tmp/.tmpzMbKk5/a.tmp
set_file_context: 'guest_u:object_r:etc_t:s0:c42' => '/tmp/.tmpzMbKk5/a.tmp'.
touch: /tmp/.tmpzMbKk5/wrong.tmp
set_file_context failed: 'guest_u:object_r:etc_t:s42:c0' => '/tmp/.tmpzMbKk5/wrong.tmp': lsetfilecon() failed on path '/tmp/.tmpzMbKk5/wrong.tmp'.
thread 'test_chcon::valid_reference_repeated_reference' panicked at tests/by-util/test_chcon.rs:539:64:
called `Result::unwrap()` on an `Err` value: IO1Path { source: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }, operation: "lsetfilecon()", path: "/tmp/.tmpzMbKk5/wrong.tmp" }
---- test_dd::test_seek_past_dev stdout ----
run: sudo -E --non-interactive whoami
thread 'test_dd::test_seek_past_dev' panicked at tests/common/util.rs:2940:55:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/by-util/test_chcon.rs around line 539 and tests/common/util.rs around line 2940, then run the reported tests to reproduce both failures. Check whether the failures depend on the environment shown in the output, including SELinux file contexts and the unavailable sudo command; done means the tests pass or their prerequisites are handled explicitly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100