[darcs-users] send.sh test still fail

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Sat Nov 12 17:25:01 UTC 2005


On Saturday 12 November 2005 15:51, David Roundy wrote:
> On Sat, Nov 12, 2005 at 11:24:18AM +0100, Gaetan Lehmann wrote:
> > send.sh still fail
> > it seems that the sendmail command is not run at all.
>
> Can you see what happens if you add
>
> export DARCS_EDITOR=echo
>
> to the top of send.sh? I'm speculating that perhaps on your system (what OS
> is it, btw?) 

it's linux mandriva cooker x86_64. ghc 6.4.1

> the editor is failing when called by a darcs which is called 
> by a script.


[glehmann at deborah darcs]$ export DARCS_EDITOR=echo
[glehmann at deborah darcs]$ cd tests/
[glehmann at deborah tests]$ sh send.sh

test $DARCS || DARCS=$PWD/../darcs

rm -rf temp1 temp2
mkdir temp1 temp2

cd temp2
$DARCS init

# setup test
cd ../temp1
$DARCS init
touch foo bar
$DARCS add foo bar
$DARCS record -a -m add_foo_bar -A x
Finished recording patch 'add_foo_bar'

# Test that a default preference value is not needed to send
$DARCS send --author=me -a --to=random at random "--sendmail-command=cat 
%<" ../temp2 | grep -x "To: random at random"
[glehmann at deborah tests]
[glehmann at deborah tests]$ cd temp1/
[glehmann at deborah temp1]$ ../../darcs send --author=me -a --to=random at random 
"--sendmail-command=echo AAAAAAAAAAAAAAAAAAA" ../temp2
Creating patch to "../temp2"...
Successfully sent patch bundle to: random at random.
[glehmann at deborah temp1]$

the command seems to not be run :-/


here is the env, if it can help:

[glehmann at deborah temp1]$ env
LESSKEY=/etc/.less
HOSTNAME=deborah.mandriva.com
PVM_RSH=/usr/bin/rsh
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
TMPDIR=/home/glehmann/tmp
SSH_CLIENT=192.168.2.6 56275 22
GNUSTEP_LOCAL_ROOT=/usr/GNUstep/Local
QTDIR=/usr/lib/qt3/
ICECREAMDIR=/usr/lib64/icecream
SSH_TTY=/dev/pts/17
GNUSTEP_HOST=x86_64-unknown-linux-gnu
USER=glehmann
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
LD_LIBRARY_PATH=/home/glehmann/GNUstep/Library/Libraries:/usr/GNUstep/Local/Library/Libraries:/usr/GNUstep/System/Library/Libraries
GUILE_LOAD_PATH=/home/glehmann/GNUstep/Library/Libraries/Guile:/usr/GNUstep/Local/Library/Libraries/Guile:/usr/GNUstep/System/Library/Libraries/Guile
GNUSTEP_NETWORK_ROOT=/usr/GNUstep/Local
GNUSTEP_MAKEFILES=/usr/GNUstep/System/Library/Makefiles
GNUSTEP_ROOT=/usr/GNUstep
PVM_ROOT=/usr/share/pvm3
GNUSTEP_FLATTENED=yes
GNUSTEP_HOST_OS=linux-gnu
SCREENDIR=/home/glehmann/tmp
PVM_ARCH=
XDG_CONFIG_DIRS=/var/lib/menu-xdg
GNUSTEP_HOST_VENDOR=unknown
NLSPATH=/usr/share/locale/%l/%N
MAIL=/var/spool/mail/glehmann
PATH=/usr/lib64/icecream/bin:/home/glehmann/GNUstep/Tools:/usr/GNUstep/Local/Tools:/usr/GNUstep/System/Tools:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/usr/share/pvm3/:/home/glehmann/bin
SECURE_LEVEL=3
PVM_TMP=/var/run/pvm3
INPUTRC=/etc/inputrc
PWD=/home/glehmann/darcs/tests/temp1
PYTHONSTARTUP=/etc/pythonrc.py
GNUSTEP_HOST_CPU=x86_64
PS1=[\u@\h \W]\$
HISTCONTROL=ignoredups
LESSCHARSET=koi8-r
SHLVL=1
HOME=/home/glehmann
XPVM_ROOT=/usr/X11R6/lib/xpvm/
GNUSTEP_USER_ROOT=/home/glehmann/GNUstep
GCONF_TMPDIR=/tmp
GNUSTEP_SYSTEM_ROOT=/usr/GNUstep/System
TMP=/home/glehmann/tmp
LESS=-MM
G_FILENAME_ENCODING=@locale
LOGNAME=glehmann
GNUSTEP_PATHLIST=/home/glehmann/GNUstep:/usr/GNUstep/Local:/usr/GNUstep/System
DARCS_EDITOR=echo
XDG_DATA_DIRS=/var/lib/menu-xdg:/usr/share
CLASSPATH=/home/glehmann/GNUstep/Library/Libraries/Java:/usr/GNUstep/Local/Library/Libraries/Java:/usr/GNUstep/System/Library/Libraries/Java
SSH_CONNECTION=192.168.2.6 56275 192.168.2.67 22
LIBRARY_COMBO=gnu-gnu-gnu
LESSOPEN=|/usr/bin/lesspipe.sh %s
LADSPA_PATH=/usr/lib64/ladspa/
PVMD_NOHOLD=ON
_=/bin/env
OLDPWD=/home/glehmann/darcs/tests
[glehmann at deborah temp1]$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20051112/f04a4cdc/attachment.pgp 


More information about the darcs-users mailing list