Browse code

Merge "Remove trailing whitespaces in regular file"

Jenkins authored on 2012/03/14 03:15:47
Showing 9 changed files
... ...
@@ -10,6 +10,7 @@ Devin Carlen <devin.carlen@gmail.com>
10 10
 Eddie Hebert <edhebert@gmail.com>
11 11
 Eoghan Glynn <eglynn@redhat.com>
12 12
 Gabriel Hurley <gabriel@strikeawe.com>
13
+Hengqing Hu <hudayou@hotmail.com>
13 14
 Jake Dahn <admin@jakedahn.com>
14 15
 James E. Blair <james.blair@rackspace.com>
15 16
 Jason Cannavale <jason.cannavale@rackspace.com>
... ...
@@ -147,7 +147,7 @@ cat > $LIBVIRT_XML <<EOF
147 147
     <interface type='network'>
148 148
       <source network='$NET_NAME'/>
149 149
     </interface>
150
-        
150
+
151 151
     <!-- The order is significant here.  File must be defined first -->
152 152
     <serial type="file">
153 153
       <source path='$vm_dir/console.log'/>
... ...
@@ -78,7 +78,7 @@ set -o xtrace
78 78
 . localrc
79 79
 
80 80
 # Unlike kvm, ssh to the xen host to run tests, in case the test instance is launch with a host only network
81
-ssh root@$XEN_IP &quot;cd devstack &amp;&amp; . localrc &amp;&amp; cd tools/jenkins &amp;&amp; ./run_test.sh $EXECUTOR_NUMBER $ADAPTER &apos;$RC&apos;&quot; 
81
+ssh root@$XEN_IP &quot;cd devstack &amp;&amp; . localrc &amp;&amp; cd tools/jenkins &amp;&amp; ./run_test.sh $EXECUTOR_NUMBER $ADAPTER &apos;$RC&apos;&quot;
82 82
 </command>
83 83
     </hudson.tasks.Shell>
84 84
   </builders>
... ...
@@ -1,5 +1,5 @@
1 1
 #!/bin/sh -e
2
-# Copyright (c) 2010-2011 Gluster, Inc. <http://www.gluster.com> 
2
+# Copyright (c) 2010-2011 Gluster, Inc. <http://www.gluster.com>
3 3
 # This initial version of this file was taken from the source tree
4 4
 # of GlusterFS. It was not directly attributed, but is assumed to be
5 5
 # Copyright (c) 2010-2011 Gluster, Inc and release GPLv3
... ...
@@ -30,7 +30,7 @@ fi
30 30
 if [ ! -d files/apts ]; then
31 31
     echo "Please run this script from devstack/tools/"
32 32
     exit 1
33
-fi 
33
+fi
34 34
 
35 35
 # Mount the image
36 36
 STAGING_DIR=/tmp/`echo $1 | sed  "s/\//_/g"`.stage
... ...
@@ -144,7 +144,7 @@ if [ ! -d $TOP_DIR/nova ]; then
144 144
     env GIT_SSL_NO_VERIFY=true git clone $NOVA_REPO
145 145
     cd $TOP_DIR/nova
146 146
     git checkout $NOVA_BRANCH
147
-fi 
147
+fi
148 148
 
149 149
 # Install plugins
150 150
 cp -pr $TOP_DIR/nova/plugins/xenserver/xenapi/etc/xapi.d /etc/
... ...
@@ -21,7 +21,7 @@ if [ -e /usr/bin/vim ]; then
21 21
     ln -s /usr/bin/vim /bin/vi
22 22
 fi
23 23
 
24
-# Install git 
24
+# Install git
25 25
 if ! which git; then
26 26
     DEST=/tmp/
27 27
     GITDIR=$DEST/git-1.7.7
... ...
@@ -88,7 +88,7 @@ EOF
88 88
 
89 89
 get_params()
90 90
 {
91
-  while getopts "hicwbf:d:v:m:p:k:r:l:" OPTION; 
91
+  while getopts "hicwbf:d:v:m:p:k:r:l:" OPTION;
92 92
   do
93 93
     case $OPTION in
94 94
       h) usage
... ...
@@ -246,7 +246,7 @@ create_management_vif()
246 246
 
247 247
 
248 248
 # This installs the interface for public traffic, only if a bridge is specified
249
-# The interface is not configured at this stage, but it will be, once the admin   
249
+# The interface is not configured at this stage, but it will be, once the admin
250 250
 # tasks are complete for the services of this VPX
251 251
 create_public_vif()
252 252
 {
... ...
@@ -177,7 +177,7 @@ EOF
177 177
     /sbin/mkfs.ext3 -I 128 -m0 -F "$partition"
178 178
     /sbin/e2label "$partition" vpxroot
179 179
     make_fs_inner "$staging" "$partition" ""
180
-    
180
+
181 181
     # Now run grub on the image we've created
182 182
     CLEAN_MOUNTPOINT=$(mktemp -d "$TMPDIR/mkfs-XXXXXX")
183 183
 
... ...
@@ -203,7 +203,7 @@ EOF
203 203
 
204 204
     $SUDO umount "$CLEAN_MOUNTPOINT"
205 205
     CLEAN_MOUNTPOINT=
206
-    
206
+
207 207
     # Grub expects a disk with name /dev/xxxx with a first partition
208 208
     # named /dev/xxxx1, so we give it what it wants using symlinks
209 209
     # Note: /dev is linked to the real /dev of the build machine, so
... ...
@@ -214,14 +214,14 @@ EOF
214 214
     rm -f "$disk_part1_name"
215 215
     ln -s "$CLEAN_LOSETUP" "$disk_name"
216 216
     ln -s "$partition" "$disk_part1_name"
217
-    
217
+
218 218
     # Feed commands into the grub shell to setup the disk
219 219
     grub --no-curses --device-map=/dev/null <<EOF
220 220
 device (hd0) $disk_name
221 221
 setup (hd0) (hd0,0)
222 222
 quit
223 223
 EOF
224
-    
224
+
225 225
     # Cleanup
226 226
     rm -f "$disk_name"
227 227
     rm -f "$disk_part1_name"
... ...
@@ -253,7 +253,7 @@ splitvdi () {
253 253
     local n_bytes=$(stat --printf=%s "$diskimg")
254 254
     local n_meg=$((($n_bytes+$((1024*1024 -1)))/$((1024*1024))))
255 255
     local i=0
256
-    while [ $i -lt $n_meg ] ; do 
256
+    while [ $i -lt $n_meg ] ; do
257 257
 	if [ $rio -eq 0 ] ; then
258 258
 		local file="$outputdir"/chunk-$(printf "%08d" $i)
259 259
 		dd if="$diskimg" of="$file" skip=$i bs=1M count=1 2>/dev/null
... ...
@@ -359,7 +359,7 @@ done
359 359
 
360 360
 
361 361
 # cleanup
362
-if [ -z "${DO_NOT_CLEANUP:-}" ] ; then 
362
+if [ -z "${DO_NOT_CLEANUP:-}" ] ; then
363 363
     rm -rf "$XVA_TARBALL_STAGING"
364 364
     rm -f "$FS_TMPFILE"
365 365
 fi