Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/tmpfs Use su -m since _atf has nologin as its shell.



details:   https://anonhg.NetBSD.org/src/rev/28cdefd6340c
branches:  trunk
changeset: 758564:28cdefd6340c
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Nov 08 15:25:50 2010 +0000

description:
Use su -m since _atf has nologin as its shell.
XXX: this will still fail if root's shell is csh

diffstat:

 tests/fs/tmpfs/t_mkdir.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 9acd2e20590d -r 28cdefd6340c tests/fs/tmpfs/t_mkdir.sh
--- a/tests/fs/tmpfs/t_mkdir.sh Mon Nov 08 13:05:49 2010 +0000
+++ b/tests/fs/tmpfs/t_mkdir.sh Mon Nov 08 15:25:50 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_mkdir.sh,v 1.6 2010/11/07 17:51:18 jmmv Exp $
+# $NetBSD: t_mkdir.sh,v 1.7 2010/11/08 15:25:50 pooka Exp $
 #
 # Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -111,12 +111,12 @@
        [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
        [ ${st_gid} -eq 100 ] || atf_fail "Incorrect group"
 
-       atf_check -s eq:0 -o empty -e empty su ${user} -c 'mkdir b/a'
+       atf_check -s eq:0 -o empty -e empty su -m ${user} -c 'mkdir b/a'
        eval $(stat -s b/a)
        [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
        [ ${st_gid} -eq 0 ] || atf_fail "Incorrect group"
 
-       atf_check -s eq:0 -o empty -e empty su ${user} -c 'mkdir c/a'
+       atf_check -s eq:0 -o empty -e empty su -m ${user} -c 'mkdir c/a'
        eval $(stat -s c/a)
        [ ${st_uid} -eq $(id -u ${user}) ] || atf_fail "Incorrect owner"
        [ ${st_gid} -eq 100 ] || atf_fail "Incorrect group"



Home | Main Index | Thread Index | Old Index