From 2e11e0dbd2850053a37453e87e2e8d8617634b3d Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 4 Apr 2018 14:09:09 -0400 Subject: testing --- test/fs/fs.sh | 3 --- test/fs/whitelist-downloads.exp | 48 ----------------------------------------- 2 files changed, 51 deletions(-) delete mode 100755 test/fs/whitelist-downloads.exp diff --git a/test/fs/fs.sh b/test/fs/fs.sh index dea037a4b..774c61750 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh @@ -64,9 +64,6 @@ echo "TESTING: whitelist empty (test/fs/whitelist-empty.exp)" echo "TESTING: private whitelist (test/fs/private-whitelist.exp)" ./private-whitelist.exp -echo "TESTING: whitelist ~/Downloads (test/fs/whitelist-downloads.exp)" -./whitelist-downloads.exp - echo "TESTING: invalid filename (test/fs/invalid_filename.exp)" ./invalid_filename.exp diff --git a/test/fs/whitelist-downloads.exp b/test/fs/whitelist-downloads.exp deleted file mode 100755 index b82ca8eea..000000000 --- a/test/fs/whitelist-downloads.exp +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/expect -f -# This file is part of Firejail project -# Copyright (C) 2014-2018 Firejail Authors -# License GPL v2 - -set timeout 10 -spawn $env(SHELL) -match_max 100000 - -send -- "cp user-dirs.dirs /tmp/.\r" -after 100 - -send -- "firejail --private --noprofile\r" -expect { - timeout {puts "TESTING ERROR 0\n";exit} - "Child process initialized" -} -after 100 - -send -- "firejail --force --ignore=shell --profile=/etc/firejail/firefox.profile\r" -expect { - timeout {puts "TESTING ERROR 1\n";exit} - "cannot whitelist Downloads directory" -} -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "Child process initialized" -} -after 100 - -send -- "exit\r" -after 100 - -send -- "cp /tmp/user-dirs.dirs ~/.config/.\r" -after 100 - -send -- "firejail --force --ignore=shell --profile=/etc/firejail/firefox.profile\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "cannot whitelist Downloads directory" -} -expect { - timeout {puts "TESTING ERROR 4\n";exit} - "Child process initialized" -} -after 100 - -puts "\nall done\n" -- cgit v1.2.3-54-g00ecf