Skip to content

Commit

Permalink
fix(build): fix abstruse-pty program
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Sep 18, 2017
1 parent 924a456 commit d2e58a1
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 258 deletions.
2 changes: 1 addition & 1 deletion protractor.conf.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports.config = {
capabilities: { capabilities: {
browserName: 'chrome', browserName: 'chrome',
chromeOptions: { chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=1024,768'] // args: ['--headless', '--disable-gpu', '--window-size=1024,768']
} }
}, },
directConnect: true, directConnect: true,
Expand Down
4 changes: 3 additions & 1 deletion src/api/docker.ts
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export function createContainer(
Cmd: ['/bin/bash'], Cmd: ['/bin/bash'],
Env: envs || [], Env: envs || [],
Binds: ['/var/run/docker.sock:/var/run/docker.sock'], Binds: ['/var/run/docker.sock:/var/run/docker.sock'],
Privileged: true HostConfig: {
Privileged: true
}
} as any) } as any)
.then(container => container.start()) .then(container => container.start())
.then(() => observer.complete()) .then(() => observer.complete())
Expand Down
10 changes: 8 additions & 2 deletions src/files/scripts/abstruse-pty.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ int main(int argc, char *argv[]) {
close(fd[1]); close(fd[1]);


int status; int status;
waitpid(pid, &status, 0); if (waitpid(pid, &status, 0) == -1) {
perror("waitpid failed");
return EXIT_FAILURE;
}


return status; if (WIFEXITED(status)) {
const int code = WEXITSTATUS(status);
return code;
}
} }
} }
225 changes: 0 additions & 225 deletions tests/dev-scripts/data/push-abstruse.json

This file was deleted.

Loading

0 comments on commit d2e58a1

Please sign in to comment.