commit 54c39596938ae6d19fe5eede072d36a3f61baa12 from: Stefan Sperling date: Mon Dec 28 17:38:34 2020 UTC use POSIX [s1 = s2] syntax instead of [s1 == s2]; patch by Ryo ONODERA commit - c80f5f010956d72c751b435eca30d106a3ac5a26 commit + 54c39596938ae6d19fe5eede072d36a3f61baa12 blob - 85158592b22bb11f1035f97ad4835826c2218789 blob + a7fa11961629003f3de704711ae064f29cfb087b --- regress/cmdline/add.sh +++ regress/cmdline/add.sh @@ -141,7 +141,7 @@ test_add_deleted() { echo -n > $testroot/stdout.expected (cd $testroot/wt && got add beta > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got add command succeeded unexpectedly" >&2 diff -u $testroot/stdout.expected $testroot/stdout test_done "$testroot" "1" @@ -280,7 +280,7 @@ test_add_clashes_with_submodule() { (cd $testroot/wt && got commit -m 'add file repo2' \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "commit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - d666c6b3541b953a5c3463d3a8b2c9a0d3ade54c blob + 7fe69498eee43992d8562292d0f697608c58fe0c --- regress/cmdline/blame.sh +++ regress/cmdline/blame.sh @@ -29,7 +29,7 @@ blame_cmp() { cmp -s $testroot/${file}.blame.git $testroot/${file}.blame.got ret="$?" - if [ "$ret" != "0" -a "$xfail" == "" ]; then + if [ "$ret" != "0" -a "$xfail" = "" ]; then diff -u $testroot/${file}.blame.git $testroot/${file}.blame.got return 1 fi @@ -745,7 +745,7 @@ test_blame_submodule() { got blame -r $testroot/repo repo2 \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "blame command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -794,7 +794,7 @@ test_blame_symlink() { cmp -s $testroot/stdout.expected $testroot/stdout ret="$?" - if [ "$ret" != "0" -a "$xfail" == "" ]; then + if [ "$ret" != "0" -a "$xfail" = "" ]; then diff -u $testroot/stdout.expected $testroot/stdout test_done "$testroot" "1" return 1 @@ -815,7 +815,7 @@ test_blame_symlink() { cmp -s $testroot/stdout.expected $testroot/stdout ret="$?" - if [ "$ret" != "0" -a "$xfail" == "" ]; then + if [ "$ret" != "0" -a "$xfail" = "" ]; then diff -u $testroot/stdout.expected $testroot/stdout test_done "$testroot" "1" return 1 @@ -824,7 +824,7 @@ test_blame_symlink() { got blame -r $testroot/repo epsilon.link > $testroot/stdout \ 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "blame command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -844,7 +844,7 @@ test_blame_symlink() { got blame -r $testroot/repo passwd.link > $testroot/stdout \ 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "blame command succeeded unexpectedly" >&2 test_done "$testroot" "$ret" return 1 @@ -863,7 +863,7 @@ test_blame_symlink() { got blame -r $testroot/repo nonexistent.link > $testroot/stdout \ 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "blame command succeeded unexpectedly" >&2 test_done "$testroot" "$ret" return 1 blob - 9fa183b2eebc74ed731072735c4286255113533b blob + a766241048c3ca1094a34b2c4977c80ec15d69e5 --- regress/cmdline/branch.sh +++ regress/cmdline/branch.sh @@ -283,7 +283,7 @@ test_branch_delete() { got branch -d bogus_branch_name -r $testroot/repo \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got update succeeded unexpectedly" test_done "$testroot" "$ret" return 1 @@ -376,7 +376,7 @@ test_branch_delete_packed() { got branch -d bogus_branch_name -r $testroot/repo \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got update succeeded unexpectedly" test_done "$testroot" "$ret" return 1 blob - f2bd8da09c99bb8206cff02563a53409c9f80351 blob + 0c5c8ea1db1ca05c383570fdf3d063cbf5825f73 --- regress/cmdline/cat.sh +++ regress/cmdline/cat.sh @@ -213,7 +213,7 @@ test_cat_submodule() { got cat -r $testroot/repo repo2 > $testroot/stdout \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "cat command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 0db983c06c5b5b41c77198725d7029c5e5ba451a blob + 73b3ac7e49a392565db77b20d935db7f61aa2d02 --- regress/cmdline/checkout.sh +++ regress/cmdline/checkout.sh @@ -111,7 +111,7 @@ test_checkout_dir_not_empty() { got checkout $testroot/repo $testroot/wt > $testroot/stdout \ 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "checkout succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -183,7 +183,7 @@ test_checkout_commit_from_wrong_branch() { got checkout -b master -c $head_rev $testroot/repo $testroot/wt \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then test_done "$testroot" "1" return 1 fi @@ -372,7 +372,7 @@ test_checkout_into_nonempty_dir() { got checkout $testroot/repo $testroot/wt > $testroot/stdout \ 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "checkout succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -770,7 +770,7 @@ test_checkout_repo_with_unknown_extension() { > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got checkout command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 759292c28dbfd727a1e32e515a955160f6131b6b blob + 31ae89065fa7a9a7bb0166b3a6b67c7e72cb1780 --- regress/cmdline/cherrypick.sh +++ regress/cmdline/cherrypick.sh @@ -198,7 +198,7 @@ test_cherrypick_into_work_tree_with_conflicts() { (cd $testroot/wt && got cherrypick $branch_rev \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "cherrypick succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 79cd9c89de083c453f0ecdb45ec996309caab89e blob + 1e055a9b1f81d1721ec308592989b045d4f027c9 --- regress/cmdline/commit.sh +++ regress/cmdline/commit.sh @@ -557,7 +557,7 @@ test_commit_selected_paths() { (cd $testroot/wt && got commit -m 'many paths' nonexistent alpha \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "commit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -607,7 +607,7 @@ test_commit_outside_refs_heads() { (cd $testroot/wt && got commit -m 'change alpha' \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "commit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1122,7 +1122,7 @@ test_commit_symlink() { (cd $testroot/wt && got commit -m 'test commit_symlink' \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got commit succeeded unexpectedly" >&2 test_done "$testroot" "$ret" return 1 @@ -1200,7 +1200,7 @@ test_commit_symlink() { (cd $testroot/wt && got commit -m 'test commit_symlink' \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got commit succeeded unexpectedly" >&2 test_done "$testroot" "$ret" return 1 blob - 9c914803833b4ffaddbdd113406dd979a4216002 blob + 4eb63f995b4b84ea70ff445e9e93e6389910486d --- regress/cmdline/common.sh +++ regress/cmdline/common.sh @@ -228,7 +228,7 @@ test_done() { local testroot="$1" local result="$2" - if [ "$result" == "0" ]; then + if [ "$result" = "0" ]; then test_cleanup "$testroot" || return 1 if [ -z "$GOT_TEST_QUIET" ]; then echo "ok" blob - 83704789bb28cdc3cbe2a2d8966b886174960585 blob + f37ba4bf1d3fe1e51e68ca9e0b816cee4a0ba474 --- regress/cmdline/diff.sh +++ regress/cmdline/diff.sh @@ -346,7 +346,7 @@ test_diff_submodule_of_same_repo() { got diff -r $testroot/repo $epsilon_id $submodule_id \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "diff command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 3f5693ec2c5a3685f79649772017c3e4db3e9779 blob + 86e2e5c79aab3d66e535352f2a388f4103e8a551 --- regress/cmdline/fetch.sh +++ regress/cmdline/fetch.sh @@ -702,7 +702,7 @@ test_fetch_reference() { got fetch -q -r $testroot/repo-clone -R refs/remotes/origin/main \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got fetch command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -983,7 +983,7 @@ EOF (cd $testroot/repo-clone && got fetch nonexistent \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got fetch command succeeded unexpectedly" >&2 diff -u $testroot/stderr.expected $testroot/stderr test_done "$testroot" "1" blob - daf60185826466233528db4e050e56876c18cf37 blob + 82d727d0ed29a44abebc77cbd4f0c415c5828142 --- regress/cmdline/histedit.sh +++ regress/cmdline/histedit.sh @@ -541,7 +541,7 @@ test_histedit_edit() { (cd $testroot/wt && got histedit -c > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "histedit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -664,7 +664,7 @@ test_histedit_fold_last_commit() { > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "histedit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -711,7 +711,7 @@ test_histedit_missing_commit() { > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "histedit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -864,7 +864,7 @@ test_histedit_path_prefix_drop() { > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "histedit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -968,7 +968,7 @@ test_histedit_path_prefix_edit() { > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "histedit succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1331,7 +1331,7 @@ test_histedit_duplicate_commit_in_script() { (cd $testroot/wt && got histedit -F $testroot/histedit-script \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "histedit succeeded unexpectedly:" >&2 cat $testroot/stdout >&2 test_done "$testroot" "$ret" blob - 5d5816f7ae1012a37a6130b169e44eaf28fe5038 blob + 487d5e7d9c6ed6c9c2532b3a7fc2dd808e7f3284 --- regress/cmdline/import.sh +++ regress/cmdline/import.sh @@ -145,7 +145,7 @@ test_import_requires_new_branch() { got import -b master -m 'init' -r $testroot/repo $testroot/tree \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "import command should have failed but did not" test_done "$testroot" "1" return 1 blob - dcc2976dd6f21e2df86ea29267901889a3847bda blob + 8cf8d28bfed42a087f2050d143b3c2b39d1bb6a5 --- regress/cmdline/integrate.sh +++ regress/cmdline/integrate.sh @@ -176,7 +176,7 @@ test_integrate_requires_rebase_first() { (cd $testroot/wt && got integrate newbranch \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got integrate succeeded unexpectedly" test_done "$testroot" "$ret" return 1 @@ -360,7 +360,7 @@ test_integrate_backwards_in_time() { (cd $testroot/wt && got integrate master \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got integrate succeeded unexpectedly" test_done "$testroot" "$ret" return 1 blob - 81ae9fc2f561dca7077178cd1520b721402bf297 blob + dafaee11118bbd5a0402ea44f97b94380d8cb973 --- regress/cmdline/log.sh +++ regress/cmdline/log.sh @@ -340,7 +340,7 @@ test_log_nonexistent_path() { (cd $testroot/repo && got log this/does/not/exist \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "log command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -465,7 +465,7 @@ test_log_end_at_commit() { (cd $testroot/wt && got log -x nonexistent \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "log command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -494,7 +494,7 @@ test_log_end_at_commit() { (cd $testroot/wt && got log -x $empty_sha1 \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "log command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -762,7 +762,7 @@ test_log_submodule() { got log -p -r $testroot/repo -l1 repo2 \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "log command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 2f6c1977edb23682bb4234fb7a1ed7765df8e7a5 blob + f521fb109c0e34b24829a35522b53306805f2a44 --- regress/cmdline/rebase.sh +++ regress/cmdline/rebase.sh @@ -270,7 +270,7 @@ test_rebase_continue() { (cd $testroot/wt && got rebase -c > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "rebase succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - e3bb018f3eacad94323e5fb2868f589bcc778b52 blob + f680079f8821648decd0d8f2ee5fb463bf45484a --- regress/cmdline/ref.sh +++ regress/cmdline/ref.sh @@ -91,7 +91,7 @@ test_ref_create() { (cd $testroot/wt && got ref -s $commit_id refs/heads/symbolicref \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "git ref command succeeded unexpectedly" test_done "$testroot" "1" return 1 @@ -109,7 +109,7 @@ test_ref_create() { # Attempt to create a reference without specifying a name (cd $testroot/wt && got ref -c $commit_id 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "git ref command succeeded unexpectedly" test_done "$testroot" "1" return 1 @@ -128,7 +128,7 @@ test_ref_create() { (cd $testroot/wt && got ref -s refs/heads/symbolicref \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "git ref command succeeded unexpectedly" test_done "$testroot" "1" return 1 @@ -226,7 +226,7 @@ test_ref_delete() { got ref -r $testroot/repo -d refs/heads/bogus_ref_name \ > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got ref succeeded unexpectedly" test_done "$testroot" "$ret" return 1 blob - 30494f9d2fef5555baa42426a08a8e7d07fe854d blob + 9766243def1b9ea970812bb138d4d8aeda056a96 --- regress/cmdline/revert.sh +++ regress/cmdline/revert.sh @@ -235,7 +235,7 @@ test_revert_no_arguments() { (cd $testroot/wt && got revert > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "revert command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -274,7 +274,7 @@ test_revert_directory() { (cd $testroot/wt && got revert . > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got revert command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 529ce0b4748441cedafca8750001367158498163 blob + e511ff90472b8cd260a9254f5545b19c2a6e2623 --- regress/cmdline/stage.sh +++ regress/cmdline/stage.sh @@ -57,7 +57,7 @@ test_stage_no_changes() { (cd $testroot/wt && got stage alpha beta > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -128,7 +128,7 @@ test_stage_unversioned() { (cd $testroot/wt && got stage unversioned-file > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeed unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -267,7 +267,7 @@ test_stage_conflict() { (cd $testroot/wt && got stage alpha > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -312,7 +312,7 @@ test_stage_out_of_date() { (cd $testroot/wt && got stage alpha > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -366,7 +366,7 @@ test_double_stage() { (cd $testroot/wt && got stage beta \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -394,7 +394,7 @@ test_double_stage() { (cd $testroot/wt && got stage -F $testroot/patchscript -p \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -624,7 +624,7 @@ test_stage_rm_already_staged_file() { (cd $testroot/wt && got rm $f \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got rm command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1032,7 +1032,7 @@ test_stage_histedit() { (cd $testroot/wt && got histedit -F $testroot/histedit-script \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got histedit command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1091,7 +1091,7 @@ test_stage_rebase() { (cd $testroot/wt && got rebase newbranch \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got rebase command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1134,7 +1134,7 @@ test_stage_update() { (cd $testroot/wt && got update > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got update command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1178,7 +1178,7 @@ test_stage_commit_non_staged() { (cd $testroot/wt && got commit -m "change delta" gamma/delta \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got commit command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1224,7 +1224,7 @@ test_stage_commit_out_of_date() { (cd $testroot/wt && got commit -m "try to commit" > $testroot/stdout \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got commit command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -1453,7 +1453,7 @@ test_stage_patch() { (cd $testroot/wt && got stage -F $testroot/patchscript -p \ numbers > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -2002,7 +2002,7 @@ test_stage_patch_added_twice() { (cd $testroot/wt && got stage -F $testroot/patchscript -p \ epsilon/new > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -2127,7 +2127,7 @@ test_stage_patch_removed_twice() { (cd $testroot/wt && got stage -F $testroot/patchscript -p beta \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "$ret" return 1 @@ -2284,7 +2284,7 @@ test_stage_patch_incomplete_script() { (cd $testroot/wt && got stage -F $testroot/patchscript -p \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -2385,7 +2385,7 @@ test_stage_symlink() { (cd $testroot/wt && got stage > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "got stage succeeded unexpectedly" >&2 test_done "$testroot" "$ret" return 1 blob - 09bd0ffdb02fad6af784ac9f2d1ab88e0338f86e blob + 551a9622836341a7e773fd8bd8c3dbb99188cac8 --- regress/cmdline/status.sh +++ regress/cmdline/status.sh @@ -655,7 +655,7 @@ test_status_status_code() { (cd $testroot/wt && got status -s xDM \ > $testroot/stdout 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "status succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 98ded056d8e75ba6c4fdd00c6d079d1c469e4a17 blob + c5ae022a52f93b0d0bfba22ab27f066d4e1957d6 --- regress/cmdline/tag.sh +++ regress/cmdline/tag.sh @@ -91,7 +91,7 @@ test_tag_create() { (cd $testroot/wt && got tag -m 'test' -c $tree_id foobar \ 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "git tag command succeeded unexpectedly" test_done "$testroot" "1" return 1 blob - 55ebc6f436998717ae62d3a3d5a556c082ba9d5f blob + 9ca64b4d00d541ee2703cb9c58c93091e0ae020b --- regress/cmdline/tree.sh +++ regress/cmdline/tree.sh @@ -91,7 +91,7 @@ test_tree_submodule() { # Currently fails in open(2) got tree -r $testroot/repo repo2 > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "tree command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 @@ -118,7 +118,7 @@ test_tree_submodule_of_same_repo() { # Currently fails with "bad object data" got tree -r $testroot/repo repo2 > $testroot/stdout 2> $testroot/stderr ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "tree command succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1 blob - 543f12cdcea65ac0fd3cc061ea7e25cac98e6d08 blob + a52e26753f5fdda870b159596d715fa7bae988c0 --- regress/cmdline/update.sh +++ regress/cmdline/update.sh @@ -1221,7 +1221,7 @@ test_update_partial_rm() { (cd $testroot/wt && got update alpha epsilon/zeta 2> $testroot/stderr) ret="$?" - if [ "$ret" == "0" ]; then + if [ "$ret" = "0" ]; then echo "update succeeded unexpectedly" >&2 test_done "$testroot" "1" return 1