Shaun Marsh of the Warriors bats during the Matador BBQs One Day Cup match between Tasmania and Western Australia at North Sydney Oval on October 15, 2016 in Sydney, Australia. (Photo by Mark Metcalfe/Getty Images)

Opener Shaun Marsh is racing the clock to be fit for the first Test against South Africa after tearing his hamstring Western Australia's Matador Cup clash with Tasmania on Saturday.

Marsh scored 70 runs in his side's win, however, was in obvious discomfort in the latter stages of his innings.

"Marsh will return to Perth where he will undergo rehabilitation with a view to being available for selection for the First Test of the Commonwealth Bank Test Series against South Africa at the WACA Ground next month," Western Australia said in a statement.

The 33-year-old, who returned to the Test team for the final match of Australia's tour of Sri Lanka, scoring 130, missed the recent ODI series against South Africa due to a broken finger.

With less then three remaining until the opening Test on November 3, Joe Burns or Usman Khwaja, who were both axed in Sri Lanka, loom as his likely replacements.