--- a/loaders/bitbucket/loader_test.go Mon Sep 04 21:49:48 2017 -0500
+++ b/loaders/bitbucket/loader_test.go Mon Sep 04 22:17:44 2017 -0500
@@ -18,6 +18,8 @@
"github.com/aphistic/sweet"
. "github.com/onsi/gomega"
@@ -31,7 +33,7 @@
func (b *bitbucketSuite) TestLoaderSimple(t sweet.T) {
- data := []byte(`image: python:3
+ rawData := `image: python:3 @@ -41,7 +43,9 @@
- find . -type d -iname __pycache__ -exec rm -rf {} \; || true
- pip install -r dev-requirements.txt
- - PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests`)
+ - PYTHONPATH=%s py.test --color=auto --cov=pipelines --cov-report=term-missing tests` + data := []byte(fmt.Sprintf(rawData, "`pwd`")) cfg, err := l.Load("", "", data)
@@ -61,7 +65,7 @@
"find . -type d -iname __pycache__ -exec rm -rf {} \\; || true",
"pip install -r dev-requirements.txt",
- "PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests",
+ "PYTHONPATH=`pwd` py.test --color=auto --cov=pipelines --cov-report=term-missing tests", @@ -88,7 +92,7 @@
func (b *bitbucketSuite) TestLoaderComplexGlobalImage(t sweet.T) {
@@ -99,7 +103,9 @@
- find . -type d -iname __pycache__ -exec rm -rf {} \; || true
- pip install -r dev-requirements.txt
- - PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests`)
+ - PYTHONPATH=%s py.test --color=auto --cov=pipelines --cov-report=term-missing tests` + data := []byte(fmt.Sprintf(rawData, "`pwd`")) cfg, err := l.Load("", "", data)
@@ -119,7 +125,7 @@
"find . -type d -iname __pycache__ -exec rm -rf {} \\; || true",
"pip install -r dev-requirements.txt",
- "PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests",
+ "PYTHONPATH=`pwd` py.test --color=auto --cov=pipelines --cov-report=term-missing tests", @@ -146,7 +152,7 @@
func (b *bitbucketSuite) TestLoaderComplexGlobalImageWithLogin(t sweet.T) {
name: registry.docker.io/python:3
@@ -160,7 +166,9 @@
- find . -type d -iname __pycache__ -exec rm -rf {} \; || true
- pip install -r dev-requirements.txt
- - PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests`)
+ - PYTHONPATH=%s py.test --color=auto --cov=pipelines --cov-report=term-missing tests` + data := []byte(fmt.Sprintf(rawData, "`pwd`")) cfg, err := l.Load("", "", data)
@@ -185,7 +193,7 @@
"find . -type d -iname __pycache__ -exec rm -rf {} \\; || true",
"pip install -r dev-requirements.txt",
- "PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests",
+ "PYTHONPATH=`pwd` py.test --color=auto --cov=pipelines --cov-report=term-missing tests", @@ -215,7 +223,7 @@
func (b *bitbucketSuite) TestLoaderComplexStepImage(t sweet.T) {
- data := []byte(`pipelines:
@@ -226,7 +234,9 @@
- find . -type d -iname __pycache__ -exec rm -rf {} \; || true
- pip install -r dev-requirements.txt
- - PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests`)
+ - PYTHONPATH=%s py.test --color=auto --cov=pipelines --cov-report=term-missing tests` + data := []byte(fmt.Sprintf(rawData, "`pwd`")) cfg, err := l.Load("", "", data)
@@ -246,7 +256,7 @@
"find . -type d -iname __pycache__ -exec rm -rf {} \\; || true",
"pip install -r dev-requirements.txt",
- "PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests",
+ "PYTHONPATH=`pwd` py.test --color=auto --cov=pipelines --cov-report=term-missing tests", @@ -273,7 +283,7 @@
func (b *bitbucketSuite) TestLoaderComplexStepImageWithLogin(t sweet.T) {
- data := []byte(`pipelines:
@@ -286,7 +296,9 @@
- find . -type d -iname __pycache__ -exec rm -rf {} \; || true
- pip install -r dev-requirements.txt
- - PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests`)
+ - PYTHONPATH=%s py.test --color=auto --cov=pipelines --cov-report=term-missing tests` + data := []byte(fmt.Sprintf(rawData, "`pwd`")) cfg, err := l.Load("", "", data)
@@ -311,7 +323,7 @@
"find . -type d -iname __pycache__ -exec rm -rf {} \\; || true",
"pip install -r dev-requirements.txt",
- "PYTHONPATH=$(pwd) py.test --color=auto --cov=pipelines --cov-report=term-missing tests",
+ "PYTHONPATH=`pwd` py.test --color=auto --cov=pipelines --cov-report=term-missing tests",