diff options
Diffstat (limited to 'test/option_bind_user.exp')
-rwxr-xr-x | test/option_bind_user.exp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/option_bind_user.exp b/test/option_bind_user.exp new file mode 100755 index 000000000..9d2d17d7f --- /dev/null +++ b/test/option_bind_user.exp | |||
@@ -0,0 +1,15 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --bind=/tmp/chroot,mntpoint\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "bind option is available only if running as root" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | puts "\n" | ||
15 | |||