Commits
70 70 | '''Test 3: Compare length of reference and new lists''' |
71 71 | logfile= "mylisth.log" |
72 72 | |
73 73 | open(logfile,"w").close( ) |
74 74 | casalog.setlogfile(logfile) |
75 75 | res = listhistory(self.msfile) |
76 76 | |
77 77 | # Get the number of lines in file |
78 78 | # the number of expected lines differs |
79 79 | if is_CASA6: |
80 - | refnum=10 |
80 + | refnum=17 |
81 81 | if self.itismms: |
82 82 | # this is a guess, not tested |
83 - | refnum = 33 |
83 + | refnum = 40 |
84 84 | else: |
85 85 | # for CASA5, get only the relevant lines in the logfile |
86 86 | newfile= "newlisth.log" |
87 87 | cmd="sed -n \"/Begin Task/,/End Task/p\" %s > %s " %(logfile,newfile) |
88 88 | print(cmd) |
89 89 | os.system(cmd) |
90 90 | logfile = newfile |
91 91 | |
92 92 | refnum = 13 |
93 93 | if self.itismms: |