Guest User

Untitled

a guest
Jul 8th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.89 KB | None | 0 0
  1. [gw2] linux -- Python 3.7.3 /home/becky/buildstream/.tox/py37/bin/python
  2.  
  3. cli = <buildstream.testing.runcli.CliIntegration object at 0x7f4df9735c18>
  4. datafiles = local('/home/becky/buildstream/.tox/py37/tmp/popen-gw2/test_host_files_missing_option0')
  5. optional = 'optional'
  6.  
  7.     @pytest.mark.parametrize("optional", [("mandatory"), ("optional")])
  8.     @pytest.mark.datafiles(DATA_DIR)
  9.     @pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox')
  10.     def test_host_files_missing(cli, datafiles, optional):
  11.         project = str(datafiles)
  12.         ponyfile = os.path.join(project, 'files', 'shell-mount', 'horsy.txt')
  13.    
  14.         option = (optional == "optional")
  15.    
  16.         # Assert that we did successfully run something in the shell anyway
  17.         result = execute_shell(cli, project, ['echo', 'Hello'], config={
  18.             'shell': {
  19.                 'host-files': [
  20.                     {
  21.                         'host_path': ponyfile,
  22.                         'path': '/etc/pony.conf',
  23. >                       'optional': option
  24.                     }
  25.                 ]
  26.             }
  27.         })
  28.  
  29. tests/integration/shell.py:260:
  30. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  31. tests/integration/shell.py:41: in execute_shell
  32.     project=project, project_config=config, args=['build', element])
  33. src/buildstream/testing/runcli.py:563: in run_project_config
  34.     base_config = _yaml.load_data(config)
  35. src/buildstream/_yaml.pyx:407: in buildstream._yaml.load_data
  36.     cpdef Node load_data(str data, int file_index=_SYNTHETIC_FILE_INDEX, str file_name=None, bint copy_tree=False):
  37. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  38.  
  39. >   f_info = <FileInfo> _FILE_LIST[file_index]
  40. E   IndexError: list index out of range
  41.  
  42. src/buildstream/_yaml.pyx:440: IndexError
Advertisement
Add Comment
Please, Sign In to add comment