Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESS EPICS Environment
wrappers
e3-require
Commits
c4763694
Commit
c4763694
authored
3 years ago
by
Wayne Lewis
Browse files
Options
Downloads
Plain Diff
Merge branch '
E3-340
-env-vars' into 'master'
E3-340
: Add e3 environment consistency check See merge request e3/e3-require!39
parents
074d571c
0f3205ab
No related branches found
No related tags found
1 merge request
!39
E3-340: Add e3 environment consistency check
Pipeline
#84968
passed
3 years ago
Stage: check
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+3
-0
3 additions, 0 deletions
CHANGELOG.md
require-ess/tools/iocsh.bash
+13
-1
13 additions, 1 deletion
require-ess/tools/iocsh.bash
with
16 additions
and
1 deletion
CHANGELOG.md
+
3
−
0
View file @
c4763694
...
...
@@ -11,10 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
*
Rudimentary testing has been added:
*
*
Tests that the correct version is loaded
*
*
Tests that elementary patching/building works as expected
*
Added consistency check between e3 environment variables and path to
`iocsh.bash`
.
`iocsh.bash`
will abort if these are not consistent.
### Bugfixes
*
`iocsh.bash --help`
(and variants) no longer loads tries to load
`env.sh`
.
### Other changes
## [3.4.1]
### Bugfixes
...
...
This diff is collapsed.
Click to expand it.
require-ess/tools/iocsh.bash
+
13
−
1
View file @
c4763694
...
...
@@ -61,7 +61,7 @@ IOCSH_TOP=${PWD}
# Load any environment variables, default is $IOCSH_TOP/env.sh
loadEnv
"
$@
"
#
T
he
most unique environment variable for e3 is EPICS_DRIVER_PATH
#
C
he
ck whether an expected e3 environment variable is defined.
#
if
[[
-z
"
${
EPICS_DRIVER_PATH
}
"
]]
;
then
set
-a
...
...
@@ -70,6 +70,18 @@ if [[ -z "${EPICS_DRIVER_PATH}" ]]; then
set
+a
fi
# Check that the e3 environment definition and the path for this script
# are consistent
if
[
"
${
E3_REQUIRE_BIN
}
"
!=
"
${
SC_TOP
}
"
]
;
then
echo
"Error: Configured e3 environment does not match path for iocsh.bash executable."
echo
"Please source the appropriate setE3Env.bash file for the version"
echo
"of iocsh.bash you wish to use, or run iocsh.bash from a clean"
echo
"environment so it can set the environment correctly."
echo
"Expected path to iocsh.bash from environment =
${
E3_REQUIRE_BIN
}
"
echo
"Actual path to iocsh.bash =
${
SC_TOP
}
"
die 2
fi
BASECODE
=
"
$(
basecode_generator
)
"
check_mandatory_env_settings
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment