Import script for Multipoint test dataset to use common systemtest configuration
|Reported by:||pcampalani||Owned by:||arezaeim|
The python script used to ingest the test multipoint dataset for the systemtests is now using own configuration variables to connect to the petascopedb.
Instead, it need to take that information from the common configuration file of the systemtest, which is ./systemtest/conf/test.cfg.
FIXME file: ./systemtest/util/import_pointcloud.py PROBLEM: duplicated configuration variables: 13 DB_NAME = "petascopedb" 14 HOST_NAME = "localhost" 15 USER_NAME = "petauser" 16 PASSW = "petapasswd" FIX: do not assign their value as string inside the .py file, like "petauser", but instead fetch the info from THE configuration file of the systemtest suites, which is: ./systemtest/conf/test.cfg SOLUTION: test.cfg *exports* the variables in the user environment, so the script should simply read them with python libraries. Should be straightforward with `os' package: import os ... DB_NAME = os.environ['PS_DB']