# # # add_dir "tests/select_partial_id" # # add_file "tests/select_partial_id/__driver__.lua" # content [33116ee71aca0e254b00f36c38ad6e420d48df23] # ============================================================ --- tests/select_partial_id/__driver__.lua 33116ee71aca0e254b00f36c38ad6e420d48df23 +++ tests/select_partial_id/__driver__.lua 33116ee71aca0e254b00f36c38ad6e420d48df23 @@ -0,0 +1,10 @@ + +mtn_setup() + +addfile("testfile", "this is just a file") +commit() +rev = base_revision() + +-- Check that automate select returns the correct id when given a partial one +check(mtn("automate", "select", string.sub(rev,1,8)), 0, true, false) +check(grep(rev, "stdout"), 0, false, false)