[Sample-Platform] Add error handling for wrong commit hash in customized testing.
Introduction
CCExtractor is a tool to extract subtitles/closed captions from video streams. In order to verify that changes to the code don't break previous samples with issues, we created a test suite. To run this whenever a pull request on GitHub is opened, or when a commit is made, we created the Sample Platform (often abbreviated as SP), which is a website where users can submit faulty samples, and which kicks off the test suite on different platforms.
The task
Customized Tests help users to perform tests on specified commits on corresponding commit hash. There are no error handling for wrong commit hash, add check whether it is the valid hash corresponding to the repository specified.
Requirements to complete this task
We expect an opened pull request, which contains the modification requested above, unit tests that cover (most of) the changes, and documentation where necessary.