github.com/cloud-green/juju@v0.0.0-20151002100041-a00291338d3d/apiserver/client/run_unix_test.go (about)

     1  // Copyright 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  // +build !windows
     5  
     6  package client_test
     7  
     8  var expectedCommand = []string{
     9  	"juju-run --no-context 'hostname'\n",
    10  	"juju-run magic/0 'hostname'\n",
    11  	"juju-run magic/1 'hostname'\n",
    12  }
    13  
    14  var echoInputShowArgs = `#!/bin/bash
    15  # Write the args to stderr
    16  echo "$*" >&2
    17  # And echo stdin to stdout
    18  while read line
    19  do echo $line
    20  done <&0
    21  `
    22  
    23  var echoInput = `#!/bin/bash
    24  # And echo stdin to stdout
    25  while read line
    26  do echo $line
    27  done <&0
    28  `