You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2011/05/04 17:42:13 UTC

svn commit: r1099492 - in /subversion/trunk/subversion/tests/cmdline: diff_tests.py stat_tests.py update_tests.py

Author: philip
Date: Wed May  4 15:42:12 2011
New Revision: 1099492

URL: http://svn.apache.org/viewvc?rev=1099492&view=rev
Log:
Always use the same sleep duration when waiting for seconds to
tick over in the testsuite.

* subversion/tests/cmdline/diff_tests.py
  (diff_ignore_eolstyle_empty_lines): Increase sleep to 1.1s.

* subversion/tests/cmdline/update_tests.py
  (update_with_file_lock_and_keywords_property_set): Increase sleep to 1.1s.

* subversion/tests/cmdline/stat_tests.py
  (timestamp_behaviour): Reduce sleep to 1.1s.

Modified:
    subversion/trunk/subversion/tests/cmdline/diff_tests.py
    subversion/trunk/subversion/tests/cmdline/stat_tests.py
    subversion/trunk/subversion/tests/cmdline/update_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/diff_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/diff_tests.py?rev=1099492&r1=1099491&r2=1099492&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/diff_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/diff_tests.py Wed May  4 15:42:12 2011
@@ -3091,7 +3091,7 @@ def diff_ignore_eolstyle_empty_lines(sbo
                                         None, None, wc_dir)
 
   # sleep to guarantee timestamp change
-  time.sleep(1)
+  time.sleep(1.1)
 
   # commit only eol changes
   svntest.main.file_write(file_path,

Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/stat_tests.py?rev=1099492&r1=1099491&r2=1099492&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/stat_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/stat_tests.py Wed May  4 15:42:12 2011
@@ -705,13 +705,13 @@ def timestamp_behaviour(sbox):
   svntest.actions.run_and_verify_status(wc_dir, expected_status)
 
   # Sleep to ensure timestamps change
-  time.sleep(2)
+  time.sleep(1.1)
 
   # Check behaviour of revert on text-time
   text_time_behaviour(wc_dir, iota_path, 'iota', expected_status, 'revert')
 
   # Sleep to ensure timestamps change
-  time.sleep(2)
+  time.sleep(1.1)
 
   # Check behaviour of cleanup on text-time
   text_time_behaviour(wc_dir, iota_path, 'iota', expected_status, 'cleanup')

Modified: subversion/trunk/subversion/tests/cmdline/update_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/update_tests.py?rev=1099492&r1=1099491&r2=1099492&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/update_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/update_tests.py Wed May  4 15:42:12 2011
@@ -5338,7 +5338,7 @@ def update_with_file_lock_and_keywords_p
   mu_ts_before_update = os.path.getmtime(mu_path)
 
   # Make sure we are at a different timestamp to really notice a mtime change
-  time.sleep(1)
+  time.sleep(1.1)
 
   # Issue #3471 manifests itself here; The timestamp of 'mu' gets updated
   # to the time of the last "svn up".