Skip to content
This repository
Browse code

Do not run Parrot if it does not exist (not Linux).

  • Loading branch information...
commit 5087ca2bfc2f8d2b08787acd32c0e1bccee71174 1 parent 62b59f9
Patrick Donnelly authored July 09, 2013

Showing 1 changed file with 7 additions and 4 deletions. Show diff stats Hide diff stats

  1. 11  chirp/test/TR_chirp_multi.sh
11  chirp/test/TR_chirp_multi.sh
@@ -40,10 +40,13 @@ EOF
40 40
 $VOLUME_KEY
41 41
 EOF
42 42
 
43  
-	../../parrot/src/parrot_run ls -l /multi/127.0.0.1:`cat "$chirp_1_port"`@"$VOLUME"/
44  
-	../../parrot/src/parrot_run df -h /multi/127.0.0.1:`cat "$chirp_1_port"`@"$VOLUME"/
45  
-	../../parrot/src/parrot_run sh -c 'echo 1 > /multi/127.0.0.1:'`cat "$chirp_1_port"`'@'"$VOLUME"'/foo'
46  
-	../../parrot/src/parrot_run sh -c 'echo 2 > /multi/127.0.0.1:'`cat "$chirp_1_port"`'@'"$VOLUME"'/bar'
  43
+	# We can only test the multi interface through parrot...
  44
+	if [ -x ../../parrot/src/parrot_run ]; then
  45
+		../../parrot/src/parrot_run ls -l /multi/127.0.0.1:`cat "$chirp_1_port"`@"$VOLUME"/
  46
+		../../parrot/src/parrot_run df -h /multi/127.0.0.1:`cat "$chirp_1_port"`@"$VOLUME"/
  47
+		../../parrot/src/parrot_run sh -c 'echo 1 > /multi/127.0.0.1:'`cat "$chirp_1_port"`'@'"$VOLUME"'/foo'
  48
+		../../parrot/src/parrot_run sh -c 'echo 2 > /multi/127.0.0.1:'`cat "$chirp_1_port"`'@'"$VOLUME"'/bar'
  49
+	fi
47 50
 
48 51
 	set +e
49 52
 	return $?

0 notes on commit 5087ca2

Please sign in to comment.
Something went wrong with that request. Please try again.