Skip to content

Commit 00c4517

Browse files
committed
debugging circleci
1 parent f9a44de commit 00c4517

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

test.js

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const {
77
chmodSync,
88
removeSync,
99
readFileSync,
10+
readDirSync,
1011
copySync,
1112
writeFileSync,
1213
statSync,
@@ -876,6 +877,27 @@ test(
876877
'foobar has retained its executable file permissions'
877878
);
878879

880+
t.comment('----------.serverless BEGIN');
881+
let files = readDirSync('/serverless');
882+
files.forEach(file => {
883+
t.comment(file);
884+
});
885+
t.comment('----------.serverless/requirements END');
886+
887+
t.comment('----------.serverless BEGIN');
888+
files = readDirSync('/serverless/requirements');
889+
files.forEach(file => {
890+
t.comment(file);
891+
});
892+
t.comment('----------.serverless/requirements END');
893+
894+
t.comment('----------.serverless/requirements/bin BEGIN');
895+
files = readDirSync('/serverless/requirements/bin');
896+
files.forEach(file => {
897+
t.comment(file);
898+
});
899+
t.comment('----------.serverless/requirements/bin END');
900+
879901
const flaskPerm = statSync('.serverless/requirements/bin/flask').mode;
880902
t.true(
881903
zipfiles_with_metadata['bin/flask'].unixPermissions === flaskPerm,
@@ -1582,13 +1604,14 @@ test(
15821604
'foobar has retained its executable file permissions'
15831605
);
15841606

1585-
const zipfiles_hello2 = listZipFilesWithMetaData('.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip');
1607+
const zipfiles_hello2 = listZipFilesWithMetaData(
1608+
'.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip'
1609+
);
15861610
const flaskPerm = '755';
15871611

15881612
t.true(
1589-
zipfiles_hello2['bin/flask'].unixPermissions
1590-
.toString(8)
1591-
.slice(3, 6) === flaskPerm,
1613+
zipfiles_hello2['bin/flask'].unixPermissions.toString(8).slice(3, 6) ===
1614+
flaskPerm,
15921615
'bin/flask has retained its executable file permissions'
15931616
);
15941617

@@ -1618,13 +1641,14 @@ test(
16181641
'foobar has retained its executable file permissions'
16191642
);
16201643

1621-
const zipfiles_hello2 = listZipFilesWithMetaData('.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip');
1644+
const zipfiles_hello2 = listZipFilesWithMetaData(
1645+
'.serverless/module2-sls-py-req-test-indiv-dev-hello2.zip'
1646+
);
16221647
const flaskPerm = '755';
16231648

16241649
t.true(
1625-
zipfiles_hello2['bin/flask'].unixPermissions
1626-
.toString(8)
1627-
.slice(3, 6) === flaskPerm,
1650+
zipfiles_hello2['bin/flask'].unixPermissions.toString(8).slice(3, 6) ===
1651+
flaskPerm,
16281652
'bin/flask has retained its executable file permissions'
16291653
);
16301654

0 commit comments

Comments
 (0)