Aberdeen face a likely trip to Kazakhstan in Europa League qualifying round three if they complete the job against Rijeka of Croatia.
Derek McInnes's side lead 3-0 from the first leg and potential opponents Kairat Almaty beat Alashkert - conquerors of St Johnstone - by the same score last night.
Inverness CT will face West Ham or Birkirkara of Malta - the Hammers lead 1-0 from the home leg - if they can get the better of Astra, who have a 1-0 advantage to take to Romania.
Europa League third qualifying round
Kairat Almaty or Alashkert v HNK Rijeka or Aberdeen
West Ham United or Birkirkara v Inverness Caledonian Thistle or Astra Giurgiu
Ties to be played on Thursdays July 30 and August 6