Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

test: Skip permission-related tests when running as root #436

Merged
merged 1 commit into from
Jun 20, 2023
Merged

test: Skip permission-related tests when running as root #436

merged 1 commit into from
Jun 20, 2023

Conversation

freeekanayaka
Copy link
Contributor

The load/openSegmentWithNoAccessPermission and UvFsProbeCapabilitie/noAccess tests would fail when running as root, since EACCES wouldn't be returned.

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #436 (5a8b660) into master (8689e76) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #436      +/-   ##
==========================================
- Coverage   76.72%   76.70%   -0.03%     
==========================================
  Files          51       51              
  Lines        9597     9597              
  Branches     2443     2443              
==========================================
- Hits         7363     7361       -2     
- Misses       1160     1164       +4     
+ Partials     1074     1072       -2     

see 2 files with indirect coverage changes

The load/openSegmentWithNoAccessPermission and UvFsProbeCapabilitie/noAccess
tests would fail when running as root, since EACCES wouldn't be returned.

Signed-off-by: Free Ekanayaka <free@ekanayaka.io>
@MathieuBordere MathieuBordere merged commit 02aae76 into canonical:master Jun 20, 2023
18 of 19 checks passed
@freeekanayaka freeekanayaka deleted the fix-running-tests-as-root branch June 20, 2023 09:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants