<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - import-w3c-tests does not work if you are not using git"
   href="https://bugs.webkit.org/show_bug.cgi?id=160393">160393</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>import-w3c-tests does not work if you are not using git
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sam&#64;webkit.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lforschler&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Trying to use import-w3c-tests fails if you have checked out WebKit using SVN.  It gives the following error:

:-) samweinig:.../WebKitSVN/OpenSource&gt; import-w3c-tests -t web-platform-tests/url
Downloading W3C test repositories
Traceback (most recent call last):
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/import-w3c-tests&quot;, line 35, in &lt;module&gt;
    sys.exit(test_importer.main(sys.argv[1:], sys.stdout, sys.stderr))
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py&quot;, line 106, in main
    test_importer.do_import()
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py&quot;, line 189, in do_import
    self.test_downloader().download_tests(self.source_directory, self.options.test_paths)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_downloader.py&quot;, line 197, in download_tests
    self.checkout_test_repository(test_repository['revision'], test_repository['url'], self._filesystem.join(self.repository_directory, test_repository['name']))
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_downloader.py&quot;, line 83, in checkout_test_repository
    git = self.git('.')
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_downloader.py&quot;, line 80, in git
    return Git(test_repository, None, executive=self._host.executive, filesystem=self._filesystem)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 62, in __init__
    SCM.__init__(self, cwd, **kwargs)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/scm.py&quot;, line 66, in __init__
    self.checkout_root = self.find_checkout_root(self.cwd)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 120, in find_checkout_root
    checkout_root = self._run_git(['rev-parse', '--show-toplevel'], cwd=(path or &quot;./&quot;)).strip()
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 107, in _run_git
    return self.run(full_command_args, **full_kwargs)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/scm.py&quot;, line 77, in run
    decode_output=decode_output)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/system/executive.py&quot;, line 459, in run_command
    (error_handler or self.default_error_handler)(script_error)
  File &quot;/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/system/executive.py&quot;, line 377, in default_error_handler
    raise error
webkitpy.common.system.executive.ScriptError: Failed to run &quot;['git', 'rev-parse', '--show-toplevel']&quot; exit_code: 128 cwd: .</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>