Tweaked linux test again
#!/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"
@@ -20,3 +11,10 @@ then
else
echo "Test Network Executed Successfully!"
fi
+fi
+
+if [ "$(uname)" == "Linux" ]; then
+ echo "Trying to run Linux Test"
+ PREOUTPUT=$( DISPLAY=localhost:1.0 xvfb-run -a bash -c "gpi --help")
+ echo "Ran Test"
+fi
