Great Britain will play Novak Djokovic’s Serbia in the quarter-finals of the Davis Cup in Malaga in November.