anchor.diff:          Error -> Error
       end.
   
  -run_test(Opts) -> handle_results(ct:run_test(Opts)).
  +run_test_verbose(Opts) -> handle_results(ct:run_test(Opts)).
   
   run_test_quiet(Opts) ->
       Pid = self(),
  
positive.code:         {[Dir], Suites} when is_integer(hd(Dir)), is_list(Suites) ->
              [{dir, Dir}|lists:keydelete(dir, 1, Opts)];
          %% multiple dirs and suites, error now to simplify later steps
          {_, _} -> erlang:error({multiple_dirs_and_suites, Opts})
      end.
  
  discover_testspec(_TestSpec, Opts) ->
  
negative.code: %% Internal functions
  %% ===================================================================
  
  run_test(State) ->
      case setup_ct(State) of
          {error, {no_tests_specified, Opts}} ->
              ?WARN("No tests specified in opts: ~p", [Opts]),
              {ok, State};
          Opts ->
              Opts1 = setup_logdir(State, Opts),
              ?DEBUG("common test opts: ~p", [Opts1]),
              run_test(State, Opts1)
      end.
  
  run_test(State, Opts) ->
      {RawOpts, _} = rebar_state:command_parsed_args(State),
      Result = case proplists:get_value(verbose, RawOpts, false) of
          true  -> run_test_verbose(Opts);
          false -> run_test_quiet(Opts)
      end,
      ok = rebar_prv_cover:maybe_write_coverdata(State, ?PROVIDER),
  