test/fs/macro-subpath.exp: fix ls -> find

The whitelist test is currently broken[1]:

    TESTING: macro subpaths (test/fs/macro-subpath.exp)
    spawn /bin/bash
    firejail --profile=./macro-subpath-whitelist.profile ls  ~/Desktop/_firejail_test_dir [...]
    [...]
    /home/runner/Desktop/_firejail_test_dir:
    a

    [...]
    Parent is shutting down, bye...
    runner@runnervmrc6n4:~/work/firejail/firejail/test/fs$ TESTING ERROR 1.1 Desktop

This amends commit aff7cb630 ("feature: allow subpaths in xdg macros",
2026-04-21) / PR #7151.

Relates to #7147.

[1] https://github.com/netblue30/firejail/actions/runs/25638061680/job/75253423623
This commit is contained in:
Kelvin M. Klann 2026-05-10 12:34:01 -03:00
parent 0298a7eba7
commit 9426ba79a2

View file

@ -8,7 +8,7 @@ spawn $env(SHELL)
match_max 100000
# Test that macros work with subpaths (see #2359).
send -- "firejail --profile=./macro-subpath-whitelist.profile ls \
send -- "firejail --profile=./macro-subpath-whitelist.profile find \
~/Desktop/_firejail_test_dir \
~/Documents/_firejail_test_dir \
~/Downloads/_firejail_test_dir \
@ -16,6 +16,7 @@ send -- "firejail --profile=./macro-subpath-whitelist.profile ls \
~/Pictures/_firejail_test_dir \
~/Projects/_firejail_test_dir \
~/Videos/_firejail_test_dir \
| LC_ALL=C sort
\r"
expect {