Commit 78851bc
committed
fix(create-snapshot): workaround tests directory
The test infra assumes CWD is 'ROOT/tests'. create_snapshot_artifact
runs from the root '.', so some functions can fail.
Workaround by changing to tests while doing the imports.
Original error:
```
[12] Command:
cd ../src/firecracker && cargo pkgid | cut -d# -f2 | cut -d: -f2
[12] stdout:
[12] stderr:
/bin/sh: 1: cd: can't cd to ../src/firecracker
Returned error code: 2
stderr:
/bin/sh: 1: cd: can't cd to ../src/firecracker
```
Signed-off-by: Pablo Barbáchano <pablob@amazon.com>1 parent cdf4fef commit 78851bc
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments