Skip to content

Commit 5b1d368

Browse files
committed
fix wheel
1 parent df8e60f commit 5b1d368

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

tests/integration-workflow.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ describe("integration workflows", () => {
6868
expect(contextSource).toContain("manylinux2014_aarch64");
6969
expect(contextSource).toContain("ansible-wheelhouse");
7070
expect(contextSource).toContain("--exclude=ansible-wheelhouse");
71+
expect(contextSource).toContain('"-rf"');
72+
expect(contextSource).toContain('"gzip"');
7173
expect(contextSource).toContain('"ansible-wheelhouse"');
7274
});
7375
});

tests/integration/context.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,25 +126,37 @@ export class IntegrationContext {
126126
{ cwd: this.config.repoRoot }
127127
);
128128

129+
const sourceTarPath = join(this.linuxBundleDir, "terrarium-src.tar");
130+
rmSync(sourceTarPath, { force: true });
131+
rmSync(this.sourceArchivePath, { force: true });
129132
await run(
130133
[
131134
"tar",
132-
"-czf",
133-
this.sourceArchivePath,
135+
"-cf",
136+
sourceTarPath,
134137
"--exclude=.git",
135138
"--exclude=node_modules",
136139
"--exclude=dist",
137140
"--exclude=ansible-wheelhouse",
138141
"--exclude=tests/integration/output",
139142
"-C",
140143
this.config.repoRoot,
141-
".",
144+
"."
145+
],
146+
{ cwd: this.config.repoRoot }
147+
);
148+
await run(
149+
[
150+
"tar",
151+
"-rf",
152+
sourceTarPath,
142153
"-C",
143154
this.linuxBundleDir,
144155
"ansible-wheelhouse"
145156
],
146157
{ cwd: this.config.repoRoot }
147158
);
159+
await run(["gzip", "-f", sourceTarPath], { cwd: this.config.repoRoot });
148160
}
149161

150162
domainBundle(prefix: string, ip: string): DomainBundle {

0 commit comments

Comments
 (0)