mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4918] [MERGED] testing: fix expect matching of numbers #5299
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#5299
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/4918
Author: @smitsohu
Created: 2/9/2022
Status: ✅ Merged
Merged: 2/9/2022
Merged by: @netblue30
Base:
master← Head:tests2📝 Commits (1)
7578e86testing: fix expect matching of numbers📊 Changes
244 files changed (+559 additions, -523 deletions)
View changed files
📝
test/appimage/appimage-args.exp(+2 -2)📝
test/appimage/appimage-trace.exp(+2 -2)📝
test/appimage/appimage-v1.exp(+2 -2)📝
test/appimage/appimage-v2.exp(+2 -2)📝
test/apps-x11-xorg/firefox.exp(+1 -1)📝
test/apps-x11-xorg/thunderbird.exp(+1 -1)📝
test/apps-x11-xorg/transmission-gtk.exp(+1 -1)📝
test/apps-x11-xorg/transmission-qt.exp(+1 -1)📝
test/apps-x11/chromium.exp(+1 -1)📝
test/apps-x11/firefox.exp(+1 -1)📝
test/apps-x11/thunderbird.exp(+1 -1)📝
test/apps-x11/transmission-gtk.exp(+1 -1)📝
test/apps-x11/x11-none.exp(+1 -1)📝
test/apps-x11/x11-xephyr.exp(+2 -2)📝
test/apps-x11/xterm-xephyr.exp(+1 -1)📝
test/apps-x11/xterm-xorg.exp(+1 -1)📝
test/apps-x11/xterm-xpra.exp(+1 -1)📝
test/apps/chromium.exp(+2 -2)📝
test/apps/deluge.exp(+2 -2)📝
test/apps/fbreader.exp(+2 -2)...and 80 more files
📄 Description
The sandbox timestamp should not be available for matching when output is already
expected from the following command.This is an issue if numeric output if
expected from the first command in the sandbox and can lead to tests that fail and succeed in a non-deterministic fashion. As far as I can tell only a small number of tests is affected by this problem, but it was easiest to to just "fix" it everywhere.To reproduce add
-dto theexpectcommand line and for instance run test/environment/keep-fd.exp. Some relevant lines:People more familiar with
expectmight find better ways to achieve the same result. One possible alternative I'm aware of would be to flush theexpectoutput buffer withexpect "*"after the sandbox is up.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.