Changeset 4473


Ignore:
Timestamp:
May 22, 2007, 12:06:03 PM (17 years ago)
Author:
duncan
Message:

making get_revision_number quieter.

Location:
anuga_core/source/anuga/abstract_2d_finite_volumes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_util.py

    r4471 r4473  
    13301330if __name__ == "__main__":
    13311331    suite = unittest.makeSuite(Test_Util,'test')
    1332 #    suite = unittest.makeSuite(Test_Util,'test_store_parameters')
    1333     runner = unittest.TextTestRunner(verbosity=0)
     1332    #suite = unittest.makeSuite(Test_Util,'test_get_revision_number')
     1333    runner = unittest.TextTestRunner()
    13341334    runner.run(suite)
    1335 
    1336 
    1337 
    1338 
  • anuga_core/source/anuga/abstract_2d_finite_volumes/util.py

    r4468 r4473  
    594594        # No file available - try using Subversion
    595595        try:
    596             fid = os.popen('svn info')
     596            # The null stuff is so this section fails quitly.
     597            # This could cause the svn info command to fail due to
     598            # the redirection being bad on some platforms.
     599            # If that occurs then change this code.
     600            if sys.platform[0:3] == 'win':
     601                fid = os.popen('svn info 2> null')
     602            else:
     603                fid = os.popen('svn info 2>/dev/null')
    597604        except:
    598605            msg = 'No version info stored and command "svn" is not '
     
    602609            #print 'Got version from svn'           
    603610            version_info = fid.read()
     611        #import sys; sys.exit()
    604612    else:
    605613        pass
Note: See TracChangeset for help on using the changeset viewer.