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
30c7df71
Commit
30c7df71
authored
2 years ago
by
Simon Rose
Browse files
Options
Downloads
Patches
Plain Diff
Removed $MODULE_VERSION from patch dir
parent
1219dd20
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!87
E3-847: Apply all the patches
Pipeline
#113664
passed with warnings
2 years ago
Stage: check
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure/E3/DEFINES_FT
+2
-2
2 additions, 2 deletions
configure/E3/DEFINES_FT
tests/test_build.py
+11
-12
11 additions, 12 deletions
tests/test_build.py
with
13 additions
and
14 deletions
configure/E3/DEFINES_FT
+
2
−
2
View file @
30c7df71
...
@@ -13,7 +13,7 @@ git submodule update --remote --merge $@/
...
@@ -13,7 +13,7 @@ git submodule update --remote --merge $@/
endef
endef
define patch_site
define patch_site
patches=$$(ls $(TOP)/patch/Site/
$(E3_MODULE_VERSION)/
*.p0.patch 2> /dev/null); \
patches=$$(ls $(TOP)/patch/Site/*.p0.patch 2> /dev/null); \
if [ -n "$$patches" ]; then \
if [ -n "$$patches" ]; then \
for i in $$patches; do \
for i in $$patches; do \
printf "\nPatching %s with the file : %s\n" "$(E3_MODULE_SRC_PATH)" "$$i"; \
printf "\nPatching %s with the file : %s\n" "$(E3_MODULE_SRC_PATH)" "$$i"; \
...
@@ -25,7 +25,7 @@ fi
...
@@ -25,7 +25,7 @@ fi
endef
endef
define patch_revert_site
define patch_revert_site
patches=$$(ls $(TOP)/patch/Site/
$(E3_MODULE_VERSION)/
*.p0.patch 2> /dev/null); \
patches=$$(ls $(TOP)/patch/Site/*.p0.patch 2> /dev/null); \
if [ -n "$$patches" ]; then \
if [ -n "$$patches" ]; then \
for i in $$patches; do\
for i in $$patches; do\
printf "\nReverting applied patch %s with the file : %s\n" "$(E3_MODULE_SRC_PATH)" "$$i"; \
printf "\nReverting applied patch %s with the file : %s\n" "$(E3_MODULE_SRC_PATH)" "$$i"; \
...
...
This diff is collapsed.
Click to expand it.
tests/test_build.py
+
11
−
12
View file @
30c7df71
...
@@ -36,18 +36,8 @@ def test_patch(wrapper):
...
@@ -36,18 +36,8 @@ def test_patch(wrapper):
f
.
write
(
db_file_contents
)
f
.
write
(
db_file_contents
)
patch_dir
=
wrapper
.
path
/
"
patch
"
/
"
Site
"
patch_dir
=
wrapper
.
path
/
"
patch
"
/
"
Site
"
create_patch_file
(
patch_dir
/
MODULE_VERSION
/
"
apply.p0.patch
"
,
"
OK
"
)
create_patch_file
(
patch_dir
/
"
apply.p0.patch
"
,
"
OK
"
)
create_patch_file
(
create_patch_file
(
patch_dir
/
MODULE_VERSION
/
"
do-not-apply.p0.patch
"
,
"
Bad
"
)
patch_dir
/
MODULE_VERSION_NO_BUILD
/
"
dont-apply.p0.patch
"
,
"
Bad
"
)
create_patch_file
(
patch_dir
/
(
MODULE_VERSION
+
"
-dont-apply.p0.patch
"
),
"
Bad
"
)
rc
,
outs
,
_
=
wrapper
.
run_make
(
"
init
"
,
module_version
=
MODULE_VERSION
,
)
assert
rc
==
0
assert
"
You are in the local source mode
"
in
outs
rc
,
_
,
_
=
wrapper
.
run_make
(
"
patch
"
,
module_version
=
MODULE_VERSION
)
rc
,
_
,
_
=
wrapper
.
run_make
(
"
patch
"
,
module_version
=
MODULE_VERSION
)
assert
rc
==
0
assert
rc
==
0
...
@@ -65,6 +55,15 @@ def test_patch(wrapper):
...
@@ -65,6 +55,15 @@ def test_patch(wrapper):
assert
any
((
wrapper
.
path
/
"
cellMods
"
).
glob
(
"
**/*.db
"
))
assert
any
((
wrapper
.
path
/
"
cellMods
"
).
glob
(
"
**/*.db
"
))
def
test_local_module
(
wrapper
):
rc
,
outs
,
_
=
wrapper
.
run_make
(
"
init
"
,
module_version
=
MODULE_VERSION
,
)
assert
rc
==
0
assert
"
You are in the local source mode
"
in
outs
def
test_missing_dbd_file
(
wrapper
):
def
test_missing_dbd_file
(
wrapper
):
wrapper
.
add_var_to_makefile
(
"
DBDS
"
,
"
nonexistent.dbd
"
)
wrapper
.
add_var_to_makefile
(
"
DBDS
"
,
"
nonexistent.dbd
"
)
rc
,
_
,
errs
=
wrapper
.
run_make
(
"
build
"
)
rc
,
_
,
errs
=
wrapper
.
run_make
(
"
build
"
)
...
...
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