[146700] trunk/base/src/macports1.0/tests/reclaim.test

raimue at macports.org raimue at macports.org
Tue Mar 15 08:45:16 PDT 2016


Revision: 146700
          https://trac.macports.org/changeset/146700
Author:   raimue at macports.org
Date:     2016-03-15 08:45:16 -0700 (Tue, 15 Mar 2016)
Log Message:
-----------
macports1.0/tests:
Remove excessive descriptions and formatting

Modified Paths:
--------------
    trunk/base/src/macports1.0/tests/reclaim.test

Modified: trunk/base/src/macports1.0/tests/reclaim.test
===================================================================
--- trunk/base/src/macports1.0/tests/reclaim.test	2016-03-15 15:43:50 UTC (rev 146699)
+++ trunk/base/src/macports1.0/tests/reclaim.test	2016-03-15 15:45:16 UTC (rev 146700)
@@ -13,18 +13,10 @@
 mportinit ui_options
 
 test remove_distfiles {
-
-    # Regression test for remove_distfiles.
-    # 
-    # Constraints:
-    #               Requires root to run.
-
     Test for distfiles being successfully removed.
-
 } -constraints {
     root
 } -body {
-    
     set path [file join ${macports::portdbpath} distfiles]
     set file [file join $path "test.txt"]
 
@@ -38,26 +30,15 @@
     }
 
     return "Successfully removed distfile."
-
 } -cleanup {
     file delete -force $file
-
 } -result "Successfully removed distfile."
 
 test update_last_run {
-
-    # Regression test for update_last_run.
-    # 
-    # Constraints:
-    #               Requires root to run. 
-
     Tests for last_reclaim file being updated.
-
 } -constraints {
     root
-
 } -body {
-
     set path     [file join ${macports::portdbpath} last_reclaim]
 
     set fd          [open $path w]
@@ -83,24 +64,14 @@
     set fd  [open $path w]
     puts $fd $old_time
     close $fd
-
 } -result "Successfully updated to the correct time."
 
 
 test walk_files {
-
-    # Regression test for walk_files.
-    # 
-    # Constraints:
-    #               Require's root to run. 
-
     Tests if walking through the files, and deleting distfiles, ignoring normal files, and removing directory trees works.
-
 } -constraints {
     root
-
 } -body {
-    
     set path        [file join ${macports::portdbpath} distfiles]
     set dir         [file join $path tmp_dir]
     set subdir      [file join $dir other_tmp_dir]
@@ -129,11 +100,8 @@
     }
 
     return "Successfully deleted all files that needed to be deleted."
-    
 } -cleanup {
     file delete -force $dir  
-
 } -result "Successfully deleted all files that needed to be deleted."
 
 cleanupTests
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160315/4303769e/attachment.html>


More information about the macports-changes mailing list