[111194] branches/gsoc13-tests/src/port1.0/tests/portutil.test

cal at macports.org cal at macports.org
Mon Sep 16 14:17:28 PDT 2013


Revision: 111194
          https://trac.macports.org/changeset/111194
Author:   cal at macports.org
Date:     2013-09-16 14:17:28 -0700 (Mon, 16 Sep 2013)
Log Message:
-----------
portutil.tcl: catch error thrown by unknown target

Modified Paths:
--------------
    branches/gsoc13-tests/src/port1.0/tests/portutil.test

Modified: branches/gsoc13-tests/src/port1.0/tests/portutil.test
===================================================================
--- branches/gsoc13-tests/src/port1.0/tests/portutil.test	2013-09-16 21:07:41 UTC (rev 111193)
+++ branches/gsoc13-tests/src/port1.0/tests/portutil.test	2013-09-16 21:17:28 UTC (rev 111194)
@@ -519,7 +519,7 @@
     set workername [ditem_key $mport workername]
 
 } -body {
-    if {[$workername eval eval_targets macport] != 1} {
+    if {[$workername eval catch {eval_targets macport}] != 1} {
 		return "FAIL: invalid target detected"
     }
     if {[$workername eval eval_targets checksum] != 0} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130916/4346f53f/attachment.html>


More information about the macports-changes mailing list