Revision: 107500 https://trac.macports.org/changeset/107500 Author: marius@macports.org Date: 2013-07-01 10:48:16 -0700 (Mon, 01 Jul 2013) Log Message: ----------- Fixed relative paths in envvariables. Modified Paths: -------------- branches/gsoc13-tests/tests/test/envvariables/test.tcl Modified: branches/gsoc13-tests/tests/test/envvariables/test.tcl =================================================================== --- branches/gsoc13-tests/tests/test/envvariables/test.tcl 2013-07-01 17:23:19 UTC (rev 107499) +++ branches/gsoc13-tests/tests/test/envvariables/test.tcl 2013-07-01 17:48:16 UTC (rev 107500) @@ -16,12 +16,16 @@ proc envvar_test {} { global file global path + global portsrc + global bindir - # Make helping script + # Build helping script set fp [open script.sh w+] - puts $fp "export ENVA=A; export ENVB=B; \ - export PORTSRC=/Volumes/Other/gsoc/macports-all/branches/gsoc13-tests/tests/test-macports.conf; \ - /opt/macports-test/bin/port test" + puts -nonewline $fp "export ENVA=A; export ENVB=B; export PORTSRC=" + puts -nonewline $fp $portsrc + puts -nonewline $fp "; " + puts -nonewline $fp $bindir + puts -nonewline $fp "port test" close $fp exec sh script.sh > output @@ -44,4 +48,5 @@ removeFile $file removeDirectory $dir +cleanup cleanupTests