Browse Source

Tests: CPack fix for invalid config file path

Invalid config file path was passed to
per test specific prerequirements script.
Domen Vrankar 9 years ago
parent
commit
a15f51620b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Tests/RunCMake/CPack/CPackTestHelpers.cmake

+ 1 - 2
Tests/RunCMake/CPack/CPackTestHelpers.cmake

@@ -19,8 +19,7 @@ function(run_cpack_test_common_ TEST_NAME types build SUBTEST_SUFFIX source)
       include("${RunCMake_SOURCE_DIR}/${TEST_TYPE}/${TEST_NAME}-Prerequirements.cmake")
 
       set(FOUND_PREREQUIREMENTS false)
-      get_test_prerequirements("FOUND_PREREQUIREMENTS"
-          "${TEST_CONFIG_DIR}/${type}_config.cmake")
+      get_test_prerequirements("FOUND_PREREQUIREMENTS" "${config_file}")
 
       # skip the test if prerequirements are not met
       if(NOT FOUND_PREREQUIREMENTS)