mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
ctdb-tests: Avoid portability issue in porting tests
EUID is bash-only, so this condition always fails on other shells. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
806f54f15d
commit
2f7096494b
@ -11,7 +11,8 @@ remove_socket ()
|
||||
|
||||
test_cleanup remove_socket
|
||||
|
||||
if [ $EUID -eq 0 ] ; then
|
||||
uid=$(id -u)
|
||||
if [ "$uid" -eq 0 ] ; then
|
||||
ok "../common/system_linux.c:607 interface 'fake' not found"
|
||||
else
|
||||
ok "../common/system_linux.c:601 failed to open raw socket"
|
||||
|
Loading…
x
Reference in New Issue
Block a user