Bug 78421

Summary: ImportError: No module named piglit-run
Product: piglit Reporter: Vinson Lee <vlee>
Component: infrastructureAssignee: Jordan Justen <jljusten>
Status: RESOLVED FIXED QA Contact: Eric Anholt <eric>
Severity: blocker    
Priority: medium CC: baker.dylan.c, jljusten
Version: unspecifiedKeywords: regression
Hardware: x86-64 (AMD64)   
OS: All   
i915 platform: i915 features:

Description Vinson Lee 2014-05-08 05:10:34 UTC
piglit: c604bee4b76f1a299a2a34122a7957d86672a1cd (master)

$ ./piglit-run.py tests/sanity.py results/sanity
Traceback (most recent call last):
  File "./piglit-run.py", line 32, in <module>
  File "piglit/framework/programs/run.py", line 161, in run
    profile = framework.profile.merge_test_profiles(args.test_profile)
  File "piglit/framework/profile.py", line 242, in merge_test_profiles
  File "piglit/framework/profile.py", line 220, in loadTestProfile
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
ImportError: No module named piglit-run

9b1e7da290cd612690e85bcacc99b50c65d83fe6 is the first bad commit
commit 9b1e7da290cd612690e85bcacc99b50c65d83fe6
Author: Dylan Baker <baker.dylan.c@gmail.com>
Date:   Fri May 2 00:23:28 2014 -0700

    framework: move executable functions to modules
    This moves piglit-run and piglit-resume main() functions to
    framework.programs.run as run() and resume() respectively, and moves
    piglit-summary-* to framework.programs.summary. It then creates
    compatibility wrappers as piglit-*.py for the functions.
    This is groundwork for a combined piglit interface. The original files
    could not be imported directly since they have dash (-) in their name,
    and python considers dash an illegal character for function, class, and
    modules names, and python would raise an ImportError when attempting to
    import one of them.
    Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
    Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>

:040000 040000 082be229aa133f2dab84984b662b9818194cc8db b8081817efa35efcd21a8039ea85510797a9f764 M	framework
:100755 100755 638d63ac3d8214877d600a7f5664b8154328f363 68c546ddfa8d9de49bec234f0f03178a7556d3e6 M	piglit-resume.py
:100755 100755 e5b1b438137e3a95d8c75fc414b287a5d50a207d fd7cd72b37c4529c7e17e906033b94bbd7f2d6f5 M	piglit-run.py
:100755 100755 58b6823a451e3e2c908a501bab82d974daf2880d 92a350d0d52e47859e456ee2a58533098a45ee43 M	piglit-summary-html.py
:100755 100755 6dba1527382a84b534a4ce8f256c79f543fce529 31c66d36539135c012ba4f7ed4724832f26d690f M	piglit-summary-junit.py
:100755 100755 fe58e400befc1f808df09ec3813bb466d923ff88 b4979962131b3556a0f76e5a8997623d6a4cb3c0 M	piglit-summary.py
bisect run success
Comment 1 Jordan Justen 2014-05-08 15:19:27 UTC
Should be fixed by f4ea7b24a02d7ba0b3ba5e05ee8a83b476ef7d1e

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.