Skip to content

Commit

Permalink
Replace pwd by $PWDCMD after test_common.sh is sourced
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwoods committed Sep 4, 2021
1 parent c1bddec commit 8665d7f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion nc_test/run_diskless2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi

set -e

if test "x$srcdir" = x ; then srcdir=`pwd`; fi
if test "x$srcdir" = x ; then srcdir=`$PWDCMD`; fi
. ../test_common.sh

# Get the target OS and CPU
Expand Down
8 changes: 4 additions & 4 deletions ncdap_test/testauth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
# we need to isolate from any other test.

# Make sure execdir and srcdir absolute paths are available
WD=`pwd`
cd $srcdir ; abs_srcdir=`pwd` ; cd $WD
cd $execdir ; abs_execdir=`pwd` ; cd $WD
WD=`$PWDCMD`
cd $srcdir ; abs_srcdir=`$PWDCMD` ; cd $WD
cd $execdir ; abs_execdir=`$PWDCMD` ; cd $WD

# Now create a special directory
# And enter it to execute tests
rm -fr rcauthdir
mkdir rcauthdir
cd rcauthdir
WD=`pwd`
WD=`$PWDCMD`

#SHOW=1
#DBG=1
Expand Down
2 changes: 1 addition & 1 deletion ncdap_test/testbasicauth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RCPREC=1

NFL=1

WD=`pwd`
WD=`$PWDCMD`

NETRCFILE=$WD/test_auth_netrc
# This is the control variable; set when needed
Expand Down
2 changes: 1 addition & 1 deletion ncdap_test/testcontainerauth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
#GDB=1
#VG=1

WD=`pwd`
WD=`$PWDCMD`
COOKIES="${WD}/test_auth_cookies"

RC=.daprc
Expand Down
8 changes: 4 additions & 4 deletions ncdump/test_rcmerge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
# we need to isolate from any other test.

# Make sure execdir and srcdir absolute paths are available
WD=`pwd`
cd $srcdir ; abs_srcdir=`pwd` ; cd $WD
cd $execdir ; abs_execdir=`pwd` ; cd $WD
WD=`$PWDCMD`
cd $srcdir ; abs_srcdir=`$PWDCMD` ; cd $WD
cd $execdir ; abs_execdir=`$PWDCMD` ; cd $WD

# Now create a special directory
# And enter it to execute tests
rm -fr rcmergedir
mkdir rcmergedir
cd rcmergedir
WD=`pwd`
WD=`$PWDCMD`

if test "x$NCAUTH_HOMETEST" != x ; then
RCHOME=1
Expand Down
2 changes: 1 addition & 1 deletion nczarr_test/run_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if test "x$srcdir" = x ; then srcdir=`pwd`; fi
rm -fr rcmiscdir
mkdir rcmiscdir
cd rcmiscdir
WD=`pwd`
WD=`$PWDCMD`

# This shell script provides a miscellaneous set of tests

Expand Down

0 comments on commit 8665d7f

Please sign in to comment.