Skip to content

Commit

Permalink
Merge "[FABN-1175] Move test temp directory"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-coleman authored and Gerrit Code Review committed Mar 12, 2019
2 parents a1114dd + 7260b5d commit 66c666c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ tmp
*.heapsnapshot

#test files
test/temp/**
!test/temp/.noignore
test/fixtures/crypto-material/crypto-config/
test/fixtures/crypto-material/channel-config/
test/fixtures/crypto-material/config-base/twoorgs.genesis.block
Expand Down
2 changes: 1 addition & 1 deletion build/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const testConstants = require('../../test/unit/constants.js');
process.env.DOCKER_DEBUG = 'INFO';

// by default for running the tests print debug to a file
const debugPath = path.join(testConstants.tempdir, 'test-log', 'debug.log');
const debugPath = path.join(testConstants.tempdir, 'debug.log');
process.env.HFC_LOGGING = util.format('{"debug":"%s"}', escapeWindowsPath(debugPath));

function escapeWindowsPath(p) {
Expand Down
Empty file added test/temp/.noignore
Empty file.
4 changes: 2 additions & 2 deletions test/unit/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
SPDX-License-Identifier: Apache-2.0
*/
const os = require('os');
const path = require('path');

const tempdir = path.join(os.tmpdir(), 'hfc');
// test temp directory is /fabric-sdk-node/test/temp
const tempdir = path.join(__dirname, '../temp');

const TEST_CERT_PEM = '-----BEGIN CERTIFICATE-----' +
'MIIDVDCCAvqgAwIBAgIBATAKBggqhkjOPQQDAjBOMRMwEQYDVQQKDArOoyBBY21l' +
Expand Down

0 comments on commit 66c666c

Please sign in to comment.