Skip to content

Commit 3d7d669

Browse files
authored
Update worker.sh
1 parent 80e3ea4 commit 3d7d669

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

code/worker.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,15 @@ fi
8383

8484
echo "==========================================="
8585

86+
# Disable network access for the AppImage under test
87+
sudo ip netns add jail
88+
8689
# TODO: If everything succeeded until here, then download Firejail aith Xpra and run the application in it
8790
# and take screenshots if we don't have them already from AppStream
8891

8992
# LD_DEBUG=libs "$APPDIR/AppRun" & # Getting "Desktop file is missing. Please run /mnt/AppRun from within an AppImage." with wire-2.15.2751-x86_64.AppImage
9093
chmod +x "$FILENAME"
91-
LD_DEBUG=libs ./"$FILENAME" &
94+
sudo ip netns exec jail su $USER -c ./"$FILENAME" &
9295
APID=$!
9396
sleep 5
9497
kill $APID && echo "SUCCESS" || exit 1

0 commit comments

Comments
 (0)