Skip to content

Commit

Permalink
Merge branch '1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Jun 24, 2011
2 parents 7f6cbc9 + 0d74105 commit cde6aab
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/integration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# "Integration test" for Fabric to be run occasionally / before releasing.
# Executes idempotent/nonthreatening commands against localhost by default.

from __future__ import with_statement

from fabric.api import *


@hosts('localhost')
def test():
flags = (True, False)
funcs = (run, sudo)
cmd = "ls /"
line = "#" * 72
for shell in flags:
for pty in flags:
for combine_stderr in flags:
for func in funcs:
print(">>> %s(%s, shell=%s, pty=%s, combine_stderr=%s)" % (
func.func_name, cmd, shell, pty, combine_stderr))
print(line)
func(
cmd,
shell=shell,
pty=pty,
combine_stderr=combine_stderr
)
print(line + "\n")

0 comments on commit cde6aab

Please sign in to comment.