Description

Cant run test by command 'py.test' because there's no underlay.tar in wiki directory.

Steps to reproduce

Component selection

Details

MoinMoin Version

1.8.3

OS and Version

any

Python Version

any

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround


   1 --- moin-1.8.3/MoinMoin/_tests/maketestwiki.py	2009-05-25 00:06:49.000000000 +0400
   2 +++ site/MoinMoin/_tests/maketestwiki.py	2009-05-27 12:08:15.000000000 +0400
   3 @@ -31,12 +31,18 @@
   4                      (err.errno == 3 and os.name == 'nt')):
   5                  raise
   6  
   7 +def copyDataFolder(folder):
   8 +    print 'copying ' + folder + ' ...'
   9 +    src = os.path.join(SHARE, folder)
  10 +    dst = os.path.join(WIKI, folder)
  11 +    shutil.copytree(src, dst)
  12  
  13  def copyData():
  14 -    print 'copying data ...'
  15 -    src = os.path.join(SHARE, 'data')
  16 -    dst = os.path.join(WIKI, 'data')
  17 -    shutil.copytree(src, dst)
  18 +    #print 'copying data ...'
  19 +    #src = os.path.join(SHARE, 'data')
  20 +    #dst = os.path.join(WIKI, 'data')
  21 +    #shutil.copytree(src, dst)
  22 +    copyDataFolder('data')
  23  
  24  
  25  def untarUnderlay():
  26 @@ -58,7 +64,8 @@
  27          return
  28      removeTestWiki()
  29      copyData()
  30 -    untarUnderlay()
  31 +    #untarUnderlay()
  32 +    copyDataFolder('underlay')
  33  
  34  if __name__ == '__main__':
  35      sys.path.insert(0, moinpath)
copy_underlay.diff

Discussion

The tests are mainly for developers (they use a repo checkout usually and that has the underlay.tar).

If you change it to just use the unpacked underlay directory (which we provide for convenience in our release archive), it would stop working for the developers.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/1.8NoUnderlayTar (last edited 2011-01-17 23:25:45 by ReimarBauer)