File: exec.test

package info (click to toggle)
atheist 0.20110402-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,332 kB
  • ctags: 902
  • sloc: python: 4,764; xml: 626; makefile: 113; cpp: 54; ansic: 5; sh: 5
file content (17 lines) | stat: -rw-r--r-- 329 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- mode:python; coding:utf-8 -*-

import os

base = os.path.join('$tmp', 'token')
cmd = '$atheist -o'

fnames = ["%s.%s" % (base, i) for i in range(2)]

for fname in fnames:
    touch = Test('touch %s' % fname)
    touch.gen += fname

    cmd += ' -x "ls %s"' % fname

t = Test(cmd, shell=True)
t.post += FileContains(fnames)