Mercurial > repos > fubar > brokenandnotdeletablebyowneroradmin
comparison rgToolFactory.py @ 21:0ee2b06ea304
fix destination names of test files to match test generator schema
author | ross lazarus ross.lazarus@gmail.com |
---|---|
date | Tue, 05 Jun 2012 22:18:30 +1000 |
parents | 3f58115c6c5b |
children | 8cc3f3c0e539 |
comparison
equal
deleted
inserted
replaced
20:3f58115c6c5b | 21:0ee2b06ea304 |
---|---|
247 tdir = self.toolname | 247 tdir = self.toolname |
248 os.mkdir(tdir) | 248 os.mkdir(tdir) |
249 if self.opts.input_tab <> 'None': # we may have test data? | 249 if self.opts.input_tab <> 'None': # we may have test data? |
250 testdir = os.path.join(tdir,'test-data') | 250 testdir = os.path.join(tdir,'test-data') |
251 os.mkdir(testdir) # make tests directory | 251 os.mkdir(testdir) # make tests directory |
252 shutil.copyfile(self.opts.input_tab,os.path.join(testdir,'test1_in.tab')) | 252 shutil.copyfile(self.opts.input_tab,os.path.join(testdir,self.test1Input)) |
253 if self.opts.output_tab <> 'None': | 253 if self.opts.output_tab <> 'None': |
254 shutil.copyfile(self.opts.output_tab,os.path.join(testdir,'test1_out.tab')) | 254 shutil.copyfile(self.opts.output_tab,os.path.join(testdir,self.test1Output)) |
255 if self.opts.make_HTML: | 255 if self.opts.make_HTML: |
256 shutil.copyfile(self.opts.output_html,os.path.join(testdir,'test1_out.html')) | 256 shutil.copyfile(self.opts.output_html,os.path.join(testdir,self.test1HTML)) |
257 if self.opts.output_dir: | 257 if self.opts.output_dir: |
258 shutil.copyfile(self.tlog,os.path.join(testdir,'test1_out.log')) | 258 shutil.copyfile(self.tlog,os.path.join(testdir,'test1_out.log')) |
259 shutil.copyfile(self.xmlfile,os.path.join(tdir,self.xmlfile)) | 259 shutil.copyfile(self.xmlfile,os.path.join(tdir,self.xmlfile)) |
260 shutil.copyfile(self.pyfile,os.path.join(tdir,'%s.py' % self.toolname)) | 260 shutil.copyfile(self.pyfile,os.path.join(tdir,'%s.py' % self.toolname)) |
261 shutil.copyfile(self.sfile,os.path.join(tdir,self.sfile)) | 261 shutil.copyfile(self.sfile,os.path.join(tdir,self.sfile)) |