#!/bin/bash
if [ "$(uname)" == "Darwin" ]; then
    OUTPUT=`gpi --nogui repo_contents/testNets/TestNetwork.net | grep "gpi.canvasGraph:384"`
fi

if [ "$(uname)" == "Linux" ]; then
    echo "Trying to run Linux Test"
    PREOUTPUT=$( DISPLAY=localhost:1.0 xvfb-run -a bash -c "gpi --nogui repo_contents/testNets/TestNetwork.net")
    echo "$PREOUTPUT"
    OUTPUT=$( echo "$PREOUTPUT" | grep "gpi.canvasGraph:384" ) 
    echo "Ran linux test"
fi

echo "$OUTPUT"
 
if [-z "$OUTPUT" ]
then
  echo "Test Network Failed! Output was not successful completion of network" 1>&2
  exit 1
else
  echo "Test Network Executed Successfully!"
fi

#!/bin/bash +x
if [ "$(uname)" == "Darwin" ]; then
    OUTPUT=`gpi --nogui repo_contents/testNets/TestNetwork.net | grep "gpi.canvasGraph:384"`
fi

if [ "$(uname)" == "Linux" ]; then
    echo "Trying to run Linux Test"
    PREOUTPUT=$( DISPLAY=localhost:1.0 xvfb-run -a bash -c "gpi --help")
    echo "$PREOUTPUT"
    OUTPUT=$( echo "$PREOUTPUT" | grep "gpi.canvasGraph:384" ) 
    echo "Ran linux test"
fi

echo "$OUTPUT"
 
if [-z "$OUTPUT" ]
then
  echo "Test Network Failed! Output was not successful completion of network" 1>&2
  exit 1
else
  echo "Test Network Executed Successfully!"
fi

Change linux test to gpi --help in script
Change linux test to gpi --help in script
