Commit ab06cc3
authored
preserve-cwd only when preserve-cwd is provided (bugfix) (#2352)
* preserve-cwd only when preserve-cwd is provided
Snaps services cwd is calculated by snapd and depends on the user. Using
the service cwd as the job cwd present one challenge, if the job is a
user job it may not have access to that snap cwd (that may be in
/root/snap/...). Additionally I believe that preserving cwd always in
snaps was something done in the past because `/tmp` is private for
snaps. For now `/var/tmp` is not, and we use this quite a lot, so I'll
use that
* Update test to the new nominal behaviour1 parent 6ca9f1f commit ab06cc3
2 files changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
437 | 440 | | |
438 | 441 | | |
439 | 442 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
341 | 344 | | |
342 | | - | |
343 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
344 | 361 | | |
345 | 362 | | |
346 | 363 | | |
| |||
0 commit comments