Changeset 6f8b07c in rtems-tools for tester


Ignore:
Timestamp:
Mar 14, 2016, 3:59:11 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, master
Children:
0bbd2de
Parents:
a44fedf
Message:

rtemstoolkit: Fix execute's writer thread to not eval() the input.

The conversion to Python3 added an eval() call which is wrong.

Fix the spelling in execute.

Fix labels in the tester gdb locking.

Check the debug-trace arguments.

Close #2642.

Location:
tester/rt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tester/rt/gdb.py

    ra44fedf r6f8b07c  
    145145        try:
    146146            try:
    147                 self._lock('_open')
     147                self._lock('_writer')
    148148                try:
    149149                    if self.process is None:
    150150                        return None
    151151                finally:
    152                     self._unlock('_open')
     152                    self._unlock('_writer')
    153153                line = self.input.get(timeout = 0.5)
    154154                if self.trace:
  • tester/rt/report.py

    ra44fedf r6f8b07c  
    146146                self.lock.release()
    147147                raise error.general('test report missing: %s' % (name))
     148            exe = path.basename(self.results[name]['exe'])
    148149            result = self.results[name]['result']
    149150            time = self.results[name]['end'] - self.results[name]['start']
     
    159160            if output:
    160161                log.output(output)
    161             if header:
    162                 log.output('Result: %-10s Time: %s' % (result, str(time)))
     162                log.output('Result: %-10s Time: %s %s' % (result, str(time), exe))
    163163
    164164    def summary(self):
  • tester/rt/test.py

    ra44fedf r6f8b07c  
    218218        debug_trace = opts.find_arg('--debug-trace')
    219219        if debug_trace:
    220             debug_trace = debug_trace[1]
     220            if len(debug_trace) != 1:
     221                debug_trace = debug_trace[1]
     222            else:
     223                raise error.general('no debug flags, can be: console,gdb,output')
    221224        else:
    222225            debug_trace = ''
Note: See TracChangeset for help on using the changeset viewer.