Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.recipe.build
Commits
1396c4a4
Commit
1396c4a4
authored
Sep 05, 2013
by
Benjamin Blanc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitclone: remove trailing whitespaces and new line at end of file
parent
cdea23bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
slapos/recipe/build/tests.py
slapos/recipe/build/tests.py
+3
-3
slapos/recipe/gitclone.py
slapos/recipe/gitclone.py
+1
-1
No files found.
slapos/recipe/build/tests.py
View file @
1396c4a4
...
...
@@ -92,7 +92,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
self
.
assertTrue
(
os
.
path
.
exists
(
git_repository_path
))
self
.
assertFalse
(
os
.
path
.
exists
(
bad_file_path
),
"pyc file not removed"
)
def
test_ignore_ssl_certificate
(
self
,
ignore_ssl_certificate
=
True
):
def
test_ignore_ssl_certificate
(
self
,
ignore_ssl_certificate
=
True
):
from
slapos.recipe.gitclone
import
GIT_CLONE_ERROR_MESSAGE
,
\
GIT_CLONE_CACHE_ERROR_MESSAGE
import
slapos.recipe.gitclone
...
...
@@ -119,7 +119,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
recipe
=
slapos
.
recipe
.
gitclone
.
Recipe
(
bo
,
'test'
,
options
)
recipe
.
install
()
# Check git clone parameters
if
ignore_ssl_certificate
:
self
.
assertTrue
(
"--config"
in
check_call_paramater_list
[
0
][
0
])
...
...
@@ -133,7 +133,7 @@ class GitCloneNonInformativeTests(unittest.TestCase):
def
test_ignore_ssl_certificate_false
(
self
):
self
.
test_ignore_ssl_certificate
(
ignore_ssl_certificate
=
False
)
def
test_suite
():
suite
=
unittest
.
TestSuite
((
doctest
.
DocFileSuite
(
...
...
slapos/recipe/gitclone.py
View file @
1396c4a4
...
...
@@ -233,4 +233,4 @@ class Recipe(object):
if
self
.
revision
:
self
.
gitReset
(
self
.
revision
)
else
:
self
.
gitReset
(
'@{upstream}'
)
\ No newline at end of file
self
.
gitReset
(
'@{upstream}'
)
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