Merge pull request #1183 from Ptipiak/integration-test-files-permission

Adding a simple test for executable files
This commit is contained in:
Thayne McCombs 2022-11-28 22:14:08 -07:00 committed by GitHub
commit 2aa966cb3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1197,6 +1197,13 @@ fn test_type_executable() {
.open(te.test_root().join("executable-file.sh"))
.unwrap();
fs::OpenOptions::new()
.create(true)
.write(true)
.mode(0o645)
.open(te.test_root().join("not-user-executable-file.sh"))
.unwrap();
te.assert_output(&["--type", "executable"], "executable-file.sh");
te.assert_output(