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

#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&gt;
GRASS GIS <https://grass.osgeo.org>

#3769: [testsuite] Do not hardcode the path of the GRASSSRC
--------------------------+-------------------------
  Reporter: pmav99 | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone:
Component: Tests | Version: svn-trunk
Resolution: fixed | Keywords:
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by neteler):

* status: new => closed
* resolution: => fixed

Comment:

In [changeset:"74158" 74158]:
{{{
#!CommitTicketReference repository="" revision="74158"
test_framework_GRASS_GIS_with_NC.sh: avoid hardcoded path; usage mesg
cosmetics (fixes #3769)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3769#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>