Update of /cvsroot/nice/tester
In directory sc8-pr-cvs1:/tmp/cvs-serv2085
Modified Files:
Project run
Log Message:
Only upload a new development version when all tests succeeded, not just the bootstrap/testsuite
Index: Project
===================================================================
RCS file: /cvsroot/nice/tester/Project,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** Project 13 Nov 2003 16:57:55 -0000 1.8
--- Project 24 Nov 2003 22:26:21 -0000 1.9
***************
*** 10,16 ****
cd Nice && make universe
-
- # If we got here, the whole bootstrap process succeeded.
- if [ NICE_MASTER ]; then
- scp ./share/java/nice.jar bo...@sh...:/home/groups/n/ni/nice/htdocs
- fi
--- 10,11 ----
Index: run
===================================================================
RCS file: /cvsroot/nice/tester/run,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** run 22 Jun 2003 10:11:44 -0000 1.9
--- run 24 Nov 2003 22:26:21 -0000 1.10
***************
*** 67,72 ****
--- 67,74 ----
if ../Project; then
echo "Bootstrap OK" > $config.res
+ failed=false
else
echo "Bootstrap FAILURE" > $config.res
+ failed=true
fi
***************
*** 89,93 ****
case "$code" in
0) echo "OK" ;;
! 1) echo "FAILURE" ;;
2) echo "SKIP" ;;
3) echo "IMPOSSIBLE" ;;
--- 91,95 ----
case "$code" in
0) echo "OK" ;;
! 1) echo "FAILURE" ; failed=true ;;
2) echo "SKIP" ;;
3) echo "IMPOSSIBLE" ;;
***************
*** 111,114 ****
--- 113,122 ----
else
scp -p ./*.id ./*.res ./*.html $us...@sh...:$results_dir
+
+ # If everything went OK, upload the new development version.
+ if [ $failed = false -a "$NICE_MASTER" ]; then
+ scp Nice/share/java/nice.jar bo...@sh...:/home/groups/n/ni/nice/htdocs
+ fi
+
fi
|