def execute_specs(platform, threads, spec_path, parallel = false)
      command = if parallel
                  "platform=#{platform} parallel_rspec -n #{threads} #{spec_path}"
                else
                  "platform=#{platform} rspec #{spec_path} --tag #{platform}"
                end

      puts "Executing #{command}"
      exec command
    end
def execute_specs(platform, threads, spec_path, parallel = false)
      command = if parallel
                  "platform=#{platform} parallel_rspec -n #{threads} #{spec_path}"
                else
                  "platform=#{platform} rspec #{spec_path} --tag #{platform}"
                end

      puts "Executing #{command}"
      exec command
    end
Decide whether to execute specs in parallel or not
 @param [String] platform
 @param [int] threads
 @param [String] spec_path
 @param [boolean] parallel