# # # patch "tests/change_workspace/__driver__.lua" # from [cadfc1b8ddd93e56f5d87b1987b18246dd1e16d6] # to [b25c7d5a291a8458222455b0f6e8ac386825a8b2] # ============================================================ --- tests/change_workspace/__driver__.lua cadfc1b8ddd93e56f5d87b1987b18246dd1e16d6 +++ tests/change_workspace/__driver__.lua b25c7d5a291a8458222455b0f6e8ac386825a8b2 @@ -11,18 +11,18 @@ check(indir("betty", mtn("setup", "--bra check(indir("aaron", mtn("setup", "--branch=aaronbranch", ".")), 0, false, false) check(indir("betty", mtn("setup", "--branch=bettybranch", ".")), 0, false, false) -check(mtn("get_branch", "aaron"), 0, true, true) -check(readfile("stdout") == "aaronbranch\n") +check(mtn("get_branch", "aaron"), 0, false, true) +check(qgrep("aronbranch", "stderr")) -check(mtn("get_branch", "betty"), 0, true, true) -check(readfile("stdout") == "bettybranch\n") +check(mtn("get_branch", "betty"), 0, false, true) +check(qgrep("bettybranch", "stderr")) -- error cases -check(mtn("get_branch", "bogus"), 0, true, true) -check(qgrep("error: cannot change to directory .*/bogus", "stdout")) +check(mtn("get_branch", "bogus"), 0, false, true) +check(qgrep("error: cannot change to directory .*/bogus", "stderr")) mkdir("other") -check(mtn("get_branch", "other"), 0, true, true) -check(qgrep("directory .*/other is not a workspace", "stdout")) +check(mtn("get_branch", "other"), 0, false, true) +check(qgrep("directory .*/other is not a workspace", "stderr")) -- end of file