Ignore:
Timestamp:
Jul 19, 2010, 4:52:54 PM (9 years ago)
Author:
lindanl
Message:

Take out XML1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/QA/error_note_wf.py

    r450 r519  
    77from string import *
    88
    9 parabix_home = "/home/likewise-open/ADSFU/cameron/proto/parabix2/compiled"
    10 xmlconf_home = "/home/likewise-open/ADSFU/cameron/proto/parabix2/compiled/QA/xmlconf"
    11 output_home = "/home/likewise-open/ADSFU/cameron/proto/parabix2/compiled/QA/testoutput"
     9xmlconf_home = "/home/linda/workspace/parabix1/trunk/QA/xmlconf"
     10output_home = "/home/linda/workspace/parabix1/trunk/QA/testoutput"
    1211output_files = output_home+"/Files"
    1312output_messages = output_home+"/Messages"
    14 
     13give_reason = False
    1514
    1615subdir_prefix = ''
     
    3534                               
    3635        elif name == 'TEST':
     36                for a in attrs:
     37                        if a == 'RECOMMENDATION':
     38                                if attrs[a] == 'XML1.1':
     39                                        return
    3740                for a in attrs:
    3841                        if a == 'TYPE':
     
    7477
    7578def character_data(data):
    76         if appendreason == True:
    77           unsolved.append(data+'\n')
    78          
     79        if give_reason == True:
     80          if appendreason == True:
     81            unsolved.append(data+'\n')
     82
    7983def end_element(name):
    8084      global appendreason
     
    9195        for e in unsolved:
    9296                wf_f.write(e)
     97        print 'The number of unsolved cases is '+ str(len(unsolved))
    9398        wf_f.close()
    9499        file_type = 'valid'
     
    110115                error_f.write(e)
    111116        error_f.close()
    112         print len(All_files)
     117        print 'Total number of test cases is ' + str(len(All_files))
    113118       
    114119       
Note: See TracChangeset for help on using the changeset viewer.