tests: change arg order for runuser in tests.session - #16865
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #16865 +/- ##
==========================================
- Coverage 77.63% 77.62% -0.01%
==========================================
Files 1361 1358 -3
Lines 189322 189226 -96
Branches 2446 2446
==========================================
- Hits 146971 146892 -79
+ Misses 33478 33454 -24
- Partials 8873 8880 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Tue Apr 7 07:26:24 UTC 2026 Failures:Preparing:
Executing:
Restoring:
Skipped tests from snapd-testing-skipIf you wish to have any of the below tests run in your PR, in your PR description, add 'unskip:' followed by a copy-and-pasted list (without variants) of the below tests you wish to run (unskip plus test list must be valid yaml)
|
| --setenv TERM=xterm-256color \ | ||
| --property "Environment=SNAPD_DEBUG=$SNAPD_DEBUG SNAP_REEXEC=$SNAP_REEXEC SNAP_CONFINE_DEBUG=$SNAP_CONFINE_DEBUG" \ | ||
| $selinux_context_arg \ | ||
| "$(command -v runuser)" -l "$user" $runuser_env_arg - -c "exec $tmp_dir/exec" || true |
There was a problem hiding this comment.
@maykathm isn't the removal of - the actual change here?
There was a problem hiding this comment.
No, it's flipping the order, as discussed in the bug report. I removed the - while I was at it.
In the most recent versions of runuser, a bug in argument parsing causes tests to fail on debian sid. As a workaround, we can change the argument order (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1132588#10)