view src/testdir/setup.vim @ 11999:94e37fd22556 v8.0.0880

patch 8.0.0880: Travis uses an old Ubuntu version commit https://github.com/vim/vim/commit/02113ed4dfa585b4553a7c630b4d7eed0002aebd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 6 17:06:24 2017 +0200 patch 8.0.0880: Travis uses an old Ubuntu version Problem: Travis uses an old Ubuntu version. Solution: Switch from precise to trusty. (Ken Takata, closes https://github.com/vim/vim/issues/1897)
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Aug 2017 17:15:04 +0200
parents 4276e114b34a
children 16647bd6372c
line wrap: on
line source

" Common preparations for running tests.

" Only load this once.
if 1
  if exists('s:did_load')
    finish
  endif
  let s:did_load = 1
endif

" Make sure 'runtimepath' and 'packpath' does not include $HOME.
set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
if has('packages')
  let &packpath = &rtp
endif

" Only when the +eval feature is present. 
if 1
  " Make sure the .Xauthority file can be found after changing $HOME.
  if $XAUTHORITY == ''
    let $XAUTHORITY = $HOME . '/.Xauthority'
  endif

  " Make sure $HOME does not get read or written.
  " It must exist, gnome tries to create $HOME/.gnome2
  let $HOME = getcwd() . '/XfakeHOME'
  if !isdirectory($HOME)
    call mkdir($HOME)
  endif
endif