<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 doesn't work. Throws exception immediately."
   href="https://bugs.webkit.org/show_bug.cgi?id=169190">169190</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>import-w3c-tests doesn't work. Throws exception immediately.
          </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>Now, I could be totally doing something wrong, but on trying to import the subresource-integrity directory for the web-platform-tests, I could not get get the import-w3c-tests script to work.

I did the following:

<span class="quote">&gt; import-w3c-tests web-platform-tests/subresource-integrity</span >

And got:

Downloading W3C test repositories
Traceback (most recent call last):
  File &quot;/Volumes/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;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py&quot;, line 99, in main
    test_importer.do_import()
  File &quot;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py&quot;, line 197, in do_import
    self.test_downloader().download_tests(self.source_directory, self.test_paths)
  File &quot;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_downloader.py&quot;, line 218, in download_tests
    self.checkout_test_repository(test_repository['revision'], test_repository['url'], self._filesystem.join(self.repository_directory, test_repository['name']))
  File &quot;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_downloader.py&quot;, line 81, in checkout_test_repository
    git = self.git('.')
  File &quot;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/w3c/test_downloader.py&quot;, line 78, in git
    return Git(test_repository, None, executive=self._host.executive, filesystem=self._filesystem)
  File &quot;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/git.py&quot;, line 62, in __init__
    SCM.__init__(self, cwd, **kwargs)
  File &quot;/Volumes/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;/Volumes/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;/Volumes/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;/Volumes/Data/Code/WebKitSVN/OpenSource/Tools/Scripts/webkitpy/common/checkout/scm/scm.py&quot;, line 77, in run
    decode_output=decode_output)
  File &quot;/Volumes/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;/Volumes/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: .


I'm not super familiar with the script, but it does seem to be trying to do something with git, which makes sense since the tests are located on github, but the code is actually trying to see if the current directory is a git directory, which I don't understand.</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>