rpms/eclipse-cdt/devel eclipse-cdt-runtests.sh,1.2,1.3

Andrew Overholt overholt at fedoraproject.org
Thu Aug 28 16:24:34 UTC 2008


Author: overholt

Update of /cvs/pkgs/rpms/eclipse-cdt/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9047

Modified Files:
	eclipse-cdt-runtests.sh 
Log Message:
Use a pseudo-random port for VNC


Index: eclipse-cdt-runtests.sh
===================================================================
RCS file: /cvs/pkgs/rpms/eclipse-cdt/devel/eclipse-cdt-runtests.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- eclipse-cdt-runtests.sh	28 Aug 2008 14:48:35 -0000	1.2
+++ eclipse-cdt-runtests.sh	28 Aug 2008 16:24:03 -0000	1.3
@@ -86,10 +86,11 @@
 
 setXvnc() {
 	echo localhost > Xvnc.cfg
-	# Pick a high display number.  Hopefully this isn't in use.
-	$xvnc :57 -screen 1 1024x768x32 -auth Xvnc.cfg -localhost &
+	# Pick a high display number.
+	port=`expr '(' $RANDOM '*' 9 / 32767 ')' + 58` 
+	$xvnc :$port -screen 1 1024x768x32 -auth Xvnc.cfg -localhost &
 	Xvncpid=$!
-	DISPLAY=`$HOST`:57
+	DISPLAY=`$HOST`:$port
 }
 
 rm $properties




More information about the fedora-extras-commits mailing list