tests/run-tests.py
branchstable
changeset 1085 a2e7456b162e
parent 1084 b668ecd81629
child 1086 a2e8ccb65224
equal deleted inserted replaced
1084:b668ecd81629 1085:a2e7456b162e
   615                 inpython = True
   615                 inpython = True
   616                 addsalt(prepos, False) # make sure we report the exit code
   616                 addsalt(prepos, False) # make sure we report the exit code
   617                 script.append('%s -m heredoctest <<EOF\n' % PYTHON)
   617                 script.append('%s -m heredoctest <<EOF\n' % PYTHON)
   618             addsalt(n, True)
   618             addsalt(n, True)
   619             script.append(l[2:])
   619             script.append(l[2:])
   620         if l.startswith('  ... '): # python inlines
   620         elif l.startswith('  ... '): # python inlines
   621             after.setdefault(prepos, []).append(l)
   621             after.setdefault(prepos, []).append(l)
   622             script.append(l[2:])
   622             script.append(l[2:])
   623         elif l.startswith('  $ '): # commands
   623         elif l.startswith('  $ '): # commands
   624             if inpython:
   624             if inpython:
   625                 script.append("EOF\n")
   625                 script.append("EOF\n")