Skip to content

Commit

Permalink
test: specify the path to agoric-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Apr 1, 2021
1 parent 2bb01e8 commit ac9049c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/agoric-cli/integration-tests/test-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { test } from '@agoric/swingset-vat/tools/prepare-test-env-ava';

import fs from 'fs';
import path from 'path';
// eslint-disable-next-line import/no-extraneous-dependencies
import tmp from 'tmp';
import { makePromiseKit } from '@agoric/promise-kit';
Expand Down Expand Up @@ -47,9 +48,10 @@ test('workflow', async t => {
const extraArgs = fs.existsSync(`${__dirname}/../../cosmic-swingset`)
? ['--sdk']
: [];
const agoricCli = path.join(__dirname, '..', 'bin', 'agoric');
function myMain(args) {
// console.error('running agoric-cli', ...extraArgs, ...args);
return pspawnStdout(`agoric`, [...extraArgs, ...args], {
return pspawnStdout(agoricCli, [...extraArgs, ...args], {
stdio: ['ignore', 'pipe', 'inherit'],
env: { ...process.env, DEBUG: 'agoric' },
detached: true,
Expand Down

0 comments on commit ac9049c

Please sign in to comment.