Ell-i / ELL-i-PyBot-Tests

Robot Framework test cases for Ell-i runtime
GNU General Public License v3.0
7 stars 3 forks source link

Robot Framework tests have hardcoded folders inside scripts #5

Open temmihoo opened 10 years ago

temmihoo commented 10 years ago

The test run scripts on run-tests/ have hard coded folder names.

asifsardar26 commented 10 years ago

One solution is to add the PYTHONPATH=/test/to/library/scripts/ in the environment variable e.g. $PATH in Linux. After adding the PYTHONPATH, the setting table in test suites don't require absolute path to the test library scripts.

Please see the commit: commit fbd12e629b5f3db35c6f1b23712d0422eac7b8bd

asifsardar26 commented 10 years ago

Adding the DLLPATH in shell PATH environment for loading emulator library from the shell PATH environment is not possible, may be, because the python is loading the library with its module in python environment or the shell PATH contains the executable and emulator is a shared emulator library. Currently, it is hard coded in the run-test.sh script file in the test repository.