[GRASS-dev] [GRASS GIS] #3769: [testsuite] Do not hardcode the path of the GRASSSRC

GRASS GIS trac at osgeo.org
Mon Mar 4 12:33:56 PST 2019


#3769: [testsuite] Do not hardcode the path of the GRASSSRC
-------------------------+-------------------------
 Reporter:  pmav99       |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:
Component:  Tests        |    Version:  svn-trunk
 Keywords:               |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+-------------------------
 The hardcoded path makes it difficult to run the testsuite without
 modifying the configuration file. By using a relative path, anyone can
 run the testuite without any modifications.

 Original PR: https://github.com/GRASS-GIS/grass-ci/pull/5

 {{{
 Index: testsuite/examples/test_framework_GRASS_GIS_with_NC.conf
 ===================================================================
 --- testsuite/examples/test_framework_GRASS_GIS_with_NC.conf    (revision
 74152)
 +++ testsuite/examples/test_framework_GRASS_GIS_with_NC.conf    (working
 copy)
 @@ -3,7 +3,7 @@
  # name of binary:
  GRASSBIN=grass77
  # source code directory as full path:
 -GRASSSRC="$HOME/software/grass77"
 +GRASSSRC="$(realpath ../../)"
  # temporary grassdata directory
  GRASSDATA="$HOME/grassdata/tests-grassdata"
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3769>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list