[107500] branches/gsoc13-tests/tests/test/envvariables/test.tcl

marius at macports.org marius at macports.org
Mon Jul 1 10:48:16 PDT 2013


Revision: 107500
          https://trac.macports.org/changeset/107500
Author:   marius at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130701/78df5614/attachment.html>


More information about the macports-changes mailing list