Skip to content
Snippets Groups Projects
Commit f8f41654 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added scripts to test envsetup itself

parent a474d5c0
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
source ../../global-conf.sh
echo "Working dir: \"$(pwd)\"."
if test -z "${ENVSETUP_BRANCH}"; then
echo "Test failed, the configuration \"ENVSETUP_BRANCH\" is empty."
exit 1
fi
echo "Branch is \"${ENVSETUP_BRANCH}\"."
echo -e "${GREEN}Test OK.${NC}"
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import utils
def setup(interactive=True):
# retrieve a configuration attribute to test it
utils.log('Working dir: "%s".' % os.getcwd())
branch = utils.get_conf('ENVSETUP_BRANCH')
utils.log('Branch is "%s".' % branch)
utils.success('Test OK.')
#!/bin/bash
pwd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment