MPD_sima not starting when var dir is not present.
- pip install dist/*.whl
# smoke test
- mpd-sima --help
+ - TRACE=y ./mpd-sima -d --pid ./mpd-sima.pid -l ./mpd-sima.log
+ - sleep 10
+ - test -f ./mpd-sima.pid && kill $(cat ./mpd-sima.pid)
artifacts:
expire_in: 1 hour
paths:
- dist/*.whl
- dist/*.tar.gz
- dist/*.zip
+ - ./mpd-sima.pid
+ - ./mpd-sima.log
unittests:
stage: test
self.supersedes_config_with_cmd_line_options()
# set dbfile
self.config['sima']['db_file'] = join(self.config['sima']['var_dir'], 'sima.db')
- # Controls files access
- self.control_facc()
-
# Create directories
data_dir = self.config['sima']['var_dir']
if not isdir(data_dir):
makedirs(data_dir)
chmod(data_dir, 0o700)
+ # Controls files access
+ self.control_facc()
+
def control_facc(self):
"""Controls file access.
This is relevant only for file provided through the configuration file