~ubuntu-dev/ubuntu/lucid/atheist/lucid-201002101911

« back to all changes in this revision

Viewing changes to tests/child.test

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2009-09-06 11:56:09 UTC
  • Revision ID: james.westby@ubuntu.com-20090906115609-r4fl7q3n8vmc6s94
Tags: upstream-0.20090906
ImportĀ upstreamĀ versionĀ 0.20090906

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- mode: python; coding:utf-8 -*-
 
2
 
 
3
 
 
4
python_loop ='''
 
5
import time
 
6
while 1: time.sleep(1)
 
7
'''
 
8
 
 
9
a = Test('python -c "%s" > /dev/null' % python_loop,
 
10
         shell=True, detach=True, timeout=3, expected=-9)
 
11
 
 
12
b = Test('true', delay=5)
 
13
b.pre += Not(TaskRunning(a))
 
14
 
 
15
c = Test('pgrep -f "python -c %s"' % python_loop,
 
16
         shell=True, must_fail=True)