Skip to content

Commit

Permalink
testing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Jan 4, 2024
1 parent ec7f570 commit 5779a85
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
Empty file.
3 changes: 1 addition & 2 deletions packages/signing-utils/src/mocha-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import * as os from 'os';
export const mochaHooks: { beforeEach: Mocha.HookFunction } = {
beforeEach() {
if (!os.platform().toLowerCase().includes('linux')) {
// @ts-expect-error TS does not know mocha will properly set `this` when it invokes beforeEach
this.skip();
// this.skip();
return true;
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('LocalSigningClient', function () {
echo "signed content" > ${fileNameAfterGpgSigning}
`
);
execSync(`chmod +x ${signingScript}`);
await fs.writeFile(fileToSign, 'original content');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { execFile } from 'child_process';
import { promisify } from 'util';
import { debug, getEnv, signedFileName } from '../utils';
import type { SigningClient, SigningClientOptions } from '.';
import { chmod } from 'fs/promises';

const localClientDebug = debug.extend('LocalSigningClient');
const execFileAsync = promisify(execFile);
Expand All @@ -21,6 +22,8 @@ export class LocalSigningClient implements SigningClient {

const directoryOfFileToSign = path.dirname(file);

await chmod(this.options.signingScript, 0o755);

try {
const env = {
...getEnv(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('RemoteSigningClient', function () {
}

const remoteSigningClient = new RemoteSigningClient(getMockedSSHClient(), {
rootDir: tmpDir,
workingDirectory: tmpDir,
signingScript: signingScript,
signingMethod: 'gpg',
});
Expand Down

0 comments on commit 5779a85

Please sign in to comment.