File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Magento/FunctionalTestingFramework/Console Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 77
88namespace Magento \FunctionalTestingFramework \Console ;
99
10+ use Magento \FunctionalTestingFramework \Exceptions \TestFrameworkException ;
1011use Symfony \Component \Console \Command \Command ;
1112use Symfony \Component \Console \Input \InputArgument ;
1213use Symfony \Component \Console \Input \InputInterface ;
@@ -47,11 +48,18 @@ protected function configure()
4748 *
4849 * @param InputInterface $input
4950 * @param OutputInterface $output
51+ * @throws TestFrameworkException
5052 * @return integer
5153 */
5254 protected function execute (InputInterface $ input , OutputInterface $ output ): int
5355 {
54- $ manifestFile = file ($ input ->getArgument ("path " ), FILE_IGNORE_NEW_LINES );
56+ $ path = $ input ->getArgument ("path " );
57+
58+ if (!file_exists ($ path )) {
59+ throw new TestFrameworkException ("Could not find file $ path. Check the path and try again. " );
60+ }
61+
62+ $ manifestFile = file ($ path , FILE_IGNORE_NEW_LINES );
5563
5664 // Delete the Codeception failed file just in case it exists from any previous test runs
5765 $ this ->deleteFailedFile ();
You can’t perform that action at this time.
0 commit comments