Index: build/build.sh =================================================================== diff -u -rf693a70e680cf0a2460513b99a9a320d362b6210 -radcfc552b4becf45530d8644a59ed05be5b5f6d9 --- build/build.sh (.../build.sh) (revision f693a70e680cf0a2460513b99a9a320d362b6210) +++ build/build.sh (.../build.sh) (revision adcfc552b4becf45530d8644a59ed05be5b5f6d9) @@ -287,21 +287,25 @@ #return back to main folder cd .. - echo " ------------------------------ copy the out file into the server" - LOG=Logs - echo " ------------------------------ $poky_out" - mkdir -p $REMOTE_DIR/$REPORT_DIR/$LOG - cp $out_path/* $REMOTE_DIR/$REPORT_DIR/$LOG - mkdir -p $REMOTE_DIR/$REPORT_DIR/bin/$poky_out - cp $out_path/$poky_out/denali $REMOTE_DIR/$REPORT_DIR/bin/$poky_out - sync;sync;sync; + # Check if the builds passed. If they did, copy the build folder. + if [[ $hasTestPassed == true ]] + then + echo " ------------------------------ copy the out file into the server" + LOG=Logs + echo " ------------------------------ $poky_out" + mkdir -p $REMOTE_DIR/$REPORT_DIR/$LOG + cp $out_path/* $REMOTE_DIR/$REPORT_DIR/$LOG + mkdir -p $REMOTE_DIR/$REPORT_DIR/bin/$poky_out + cp $out_path/$poky_out/denali $REMOTE_DIR/$REPORT_DIR/bin/$poky_out + sync;sync;sync; - echo " ------------------------------ $gcc_out" - mkdir -p $REMOTE_DIR/$REPORT_DIR/$LOG - cp $out_path/* $REMOTE_DIR/$REPORT_DIR/$LOG - mkdir -p $REMOTE_DIR/$REPORT_DIR/bin/$gcc_out - cp $out_path/$gcc_out/denali $REMOTE_DIR/$REPORT_DIR/bin/$gcc_out - sync;sync;sync; + echo " ------------------------------ $gcc_out" + mkdir -p $REMOTE_DIR/$REPORT_DIR/$LOG + cp $out_path/* $REMOTE_DIR/$REPORT_DIR/$LOG + mkdir -p $REMOTE_DIR/$REPORT_DIR/bin/$gcc_out + cp $out_path/$gcc_out/denali $REMOTE_DIR/$REPORT_DIR/bin/$gcc_out + sync;sync;sync; + fi fi # To report what cases have been tested manually