Dundee United boss Jackie McNamara will face his old club Partick Thistle at Tannadice in the third round of the Scottish League Cup.