tests/run-tests.py
branchstable
changeset 1093 660262879b48
parent 1090 e7e4ca624772
child 1094 467eb2068e4a
equal deleted inserted replaced
1091:15dc93f78ecd 1093:660262879b48
   657                 inpython = False
   657                 inpython = False
   658             after.setdefault(pos, []).append(l)
   658             after.setdefault(pos, []).append(l)
   659             prepos = pos
   659             prepos = pos
   660             pos = n
   660             pos = n
   661             addsalt(n, False)
   661             addsalt(n, False)
       
   662             cmd = l[4:].split()
       
   663             if len(cmd) == 2 and cmd[0] == 'cd':
       
   664                 l = '  $ cd %s || exit 1\n' % cmd[1]
   662             script.append(l[4:])
   665             script.append(l[4:])
   663         elif l.startswith('  > '): # continuations
   666         elif l.startswith('  > '): # continuations
   664             after.setdefault(prepos, []).append(l)
   667             after.setdefault(prepos, []).append(l)
   665             script.append(l[4:])
   668             script.append(l[4:])
   666         elif l.startswith('  '): # results
   669         elif l.startswith('  '): # results