Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
501855c9
Commit
501855c9
authored
Jan 04, 2014
by
Mislav Marohnić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stubbing programs that have dashes in them
parent
24ff49cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
test/stubs/stub
+1
-1
test/test_helper.bash
+2
-2
No files found.
test/stubs/stub
View file @
501855c9
...
@@ -3,7 +3,7 @@ set -e
...
@@ -3,7 +3,7 @@ set -e
status
=
0
status
=
0
program
=
"
${
0
##*/
}
"
program
=
"
${
0
##*/
}
"
PROGRAM
=
"
$(
echo
"
$program
"
| tr a-z
A-Z
)
"
PROGRAM
=
"
$(
echo
"
$program
"
| tr a-z
- A-Z_
)
"
[
-n
"
$TMPDIR
"
]
||
TMPDIR
=
"/tmp"
[
-n
"
$TMPDIR
"
]
||
TMPDIR
=
"/tmp"
_STUB_PLAN
=
"
${
PROGRAM
}
_STUB_PLAN"
_STUB_PLAN
=
"
${
PROGRAM
}
_STUB_PLAN"
...
...
test/test_helper.bash
View file @
501855c9
...
@@ -15,7 +15,7 @@ teardown() {
...
@@ -15,7 +15,7 @@ teardown() {
stub
()
{
stub
()
{
local
program
=
"
$1
"
local
program
=
"
$1
"
local
prefix
=
"
$(
echo
"
$program
"
| tr a-z
A-Z
)
"
local
prefix
=
"
$(
echo
"
$program
"
| tr a-z
- A-Z_
)
"
shift
shift
export
"
${
prefix
}
_STUB_PLAN"
=
"
${
TMP
}
/
${
program
}
-stub-plan"
export
"
${
prefix
}
_STUB_PLAN"
=
"
${
TMP
}
/
${
program
}
-stub-plan"
...
@@ -31,7 +31,7 @@ stub() {
...
@@ -31,7 +31,7 @@ stub() {
unstub
()
{
unstub
()
{
local
program
=
"
$1
"
local
program
=
"
$1
"
local
prefix
=
"
$(
echo
"
$program
"
| tr a-z
A-Z
)
"
local
prefix
=
"
$(
echo
"
$program
"
| tr a-z
- A-Z_
)
"
local
path
=
"
${
TMP
}
/bin/
${
program
}
"
local
path
=
"
${
TMP
}
/bin/
${
program
}
"
export
"
${
prefix
}
_STUB_END"
=
1
export
"
${
prefix
}
_STUB_END"
=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment