ajrouvoet / dummy

Test results management framework
MIT License
1 stars 0 forks source link

Unable to checkout commit #18

Open Calavoow opened 11 years ago

Calavoow commented 11 years ago

The following error occurs:

  { ce-ws005: ~/src/dwarv_latest } dummy -D run -c a0997 comparison/*                    Fri 21 11:04
  > DEBUG    Cleaning `.tmp`
  > INFO     Loading metrics...
  > DEBUG    Loading metric `status`
  > DEBUG    dummy.honeypot.GrepCollector
  > DEBUG    dummy.honeypot
  > DEBUG    GrepCollector
  > DEBUG    Loading metric `log`
  > DEBUG    dummy.honeypot.LogCollector
  > DEBUG    dummy.honeypot
  > DEBUG    LogCollector
  > INFO     Running tests for target `perf` [1/1]
  > INFO     ================================================================================
  > WARNING  Checking out commit `a0997`
  > ERROR    Could not checkout `a0997`... Sorry!
M       dummyconfig.py
M       src/eng/cg/cgd/arithmetic.cgd
M       tests/common.mak
M       tests/comparison/double_imm/main.c
M       tests/comparison/double_imm/makefile
M       tests/hwconfig/endian_neg/config.v
M       tests/hwconfig/endian_neg/makefile
M       tests/mem64/read/main.c
Your branch is ahead of 'origin/master' by 8 commits.
  > INFO     Checked out the original HEAD again!
  > CRITICAL Could not checkout commit `a0997`: None
> /home/et3905-1/dummy/utils/git.py(25)checkout()
-> raise GitError( "Could not checkout commit `%s`: %s" % ( committish, e.output ))
(Pdb) w
  /home/et3905-1/dummy/__main__.py(226)main()
-> run( args )
  /home/et3905-1/dummy/runner/__init__.py(185)run()
-> runner.run( store=(not args.dryrun), target=t, commit=args.commit )
  /home/et3905-1/dummy/runner/__init__.py(82)run()
-> git.checkout( commit )
> /home/et3905-1/dummy/utils/git.py(25)checkout()
-> raise GitError( "Could not checkout commit `%s`: %s" % ( committish, e.output ))
(Pdb) l
 20                     subprocess.check_call(
 21                             [ 'git', 'checkout', committish, '--' ] + paths,
 22                             stderr=subprocess.PIPE
 23                     )
 24             except subprocess.CalledProcessError as e:
 25  ->                 raise GitError( "Could not checkout commit `%s`: %s" % ( committish, e.output ))
 26     
 27     def current_branch():
 28             """ Get the name of the current branch
 29             """
 30             try:
(Pdb) 
Calavoow commented 11 years ago

The problem was that there were working copy changes that hadn't been comitted yet. The error message does not reflect this properly though, so it should be changed.