set `ret' in a few places where it was forgotten; ok tracey@
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
diff --git a/regress/cmdline/cherrypick.sh b/regress/cmdline/cherrypick.sh
index 435304c..1c68ed3 100755
--- a/regress/cmdline/cherrypick.sh
+++ b/regress/cmdline/cherrypick.sh
@@ -910,6 +910,7 @@ test_cherrypick_symlink_conflicts() {
echo "M new.link" >> $testroot/stdout.expected
echo "D nonexistent.link" >> $testroot/stdout.expected
(cd $testroot/wt && got status > $testroot/stdout)
+ ret=$?
if [ $ret -ne 0 ]; then
diff -u $testroot/stdout.expected $testroot/stdout
test_done "$testroot" "$ret"
diff --git a/regress/cmdline/clone.sh b/regress/cmdline/clone.sh
index 7a0c9fa..e6353f2 100755
--- a/regress/cmdline/clone.sh
+++ b/regress/cmdline/clone.sh
@@ -30,12 +30,14 @@ test_clone_basic() {
fi
got log -l0 -p -r $testroot/repo > $testroot/log-repo
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got log command failed unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
fi
got log -l0 -p -r $testroot/repo > $testroot/log-repo-clone
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got log command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -50,6 +52,7 @@ test_clone_basic() {
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -68,6 +71,7 @@ test_clone_basic() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
diff --git a/regress/cmdline/fetch.sh b/regress/cmdline/fetch.sh
index a47da6f..8d6881e 100755
--- a/regress/cmdline/fetch.sh
+++ b/regress/cmdline/fetch.sh
@@ -34,6 +34,7 @@ test_fetch_basic() {
local commit_id2=`git_show_head $testroot/repo`
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -60,12 +61,14 @@ test_fetch_basic() {
fi
got log -l0 -p -r $testroot/repo > $testroot/log-repo
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got log command failed unexpectedly" >&2
test_done "$testroot" "$ret"
return 1
fi
got log -l0 -p -r $testroot/repo > $testroot/log-repo-clone
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got log command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -80,6 +83,7 @@ test_fetch_basic() {
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -98,6 +102,7 @@ test_fetch_basic() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1200,6 +1205,7 @@ test_fetch_delete_remote_refs() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1262,6 +1268,7 @@ test_fetch_delete_remote_refs() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
diff --git a/regress/cmdline/send.sh b/regress/cmdline/send.sh
index 5b7231f..6125dc5 100755
--- a/regress/cmdline/send.sh
+++ b/regress/cmdline/send.sh
@@ -65,6 +65,7 @@ EOF
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -86,6 +87,7 @@ EOF
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -267,6 +269,7 @@ EOF
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -287,6 +290,7 @@ EOF
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -343,6 +347,7 @@ EOF
got branch -r $testroot/repo-clone branch2
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -447,8 +452,9 @@ EOF
test_done "$testroot" "$ret"
return 1
fi
-
+
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -468,6 +474,7 @@ EOF
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -534,6 +541,7 @@ test_send_clone_and_send() {
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -552,6 +560,7 @@ test_send_clone_and_send() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -631,6 +640,7 @@ EOF
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -653,6 +663,7 @@ EOF
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -890,6 +901,7 @@ EOF
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -915,6 +927,7 @@ EOF
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -992,6 +1005,7 @@ test_send_new_branch() {
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1011,6 +1025,7 @@ test_send_new_branch() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1077,6 +1092,7 @@ test_send_all_branches() {
local commit_id4=`git_show_branch_head $testroot/repo-clone bar`
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1125,6 +1141,7 @@ test_send_all_branches() {
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1145,6 +1162,7 @@ test_send_all_branches() {
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1226,6 +1244,7 @@ EOF
got ref -r $testroot/repo2 -s refs/heads/master HEAD
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1246,6 +1265,7 @@ EOF
fi
got ref -l -r $testroot/repo2 > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1321,6 +1341,7 @@ remote "origin" {
}
EOF
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1348,6 +1369,7 @@ EOF
fi
got ref -l -r $testroot/repo > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1378,8 +1400,9 @@ EOF
test_done "$testroot" "$ret"
return 1
fi
-
+
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1429,6 +1452,7 @@ remote "origin" {
}
EOF
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
@@ -1461,6 +1485,7 @@ EOF
fi
got ref -l -r $testroot/repo-clone > $testroot/stdout
+ ret=$?
if [ $ret -ne 0 ]; then
echo "got ref command failed unexpectedly" >&2
test_done "$testroot" "$ret"
diff --git a/regress/cmdline/update.sh b/regress/cmdline/update.sh
index 914cb84..b3ecc91 100755
--- a/regress/cmdline/update.sh
+++ b/regress/cmdline/update.sh
@@ -2263,6 +2263,7 @@ test_update_symlink_conflicts() {
echo "M new.link" >> $testroot/stdout.expected
echo "D nonexistent.link" >> $testroot/stdout.expected
(cd $testroot/wt && got status > $testroot/stdout)
+ ret=$?
if [ $ret -ne 0 ]; then
diff -u $testroot/stdout.expected $testroot/stdout
test_done "$testroot" "$ret"