Implement profile inheritance
This commit is contained in:
+5
-5
@@ -118,7 +118,7 @@ fn bwrap_arg_setenv_passes_through() {
|
||||
fn config_entrypoint_appends_passthrough_args() {
|
||||
let cfg = ConfigFile::new(
|
||||
r#"
|
||||
[profile.test]
|
||||
[profiles.test]
|
||||
entrypoint = ["bash", "-c"]
|
||||
"#,
|
||||
);
|
||||
@@ -139,7 +139,7 @@ fn config_entrypoint_appends_passthrough_args() {
|
||||
fn config_entrypoint_falls_back_to_command_defaults() {
|
||||
let cfg = ConfigFile::new(
|
||||
r#"
|
||||
[profile.test]
|
||||
[profiles.test]
|
||||
entrypoint = ["bash", "-c"]
|
||||
command = ["echo default-args"]
|
||||
"#,
|
||||
@@ -160,7 +160,7 @@ fn config_entrypoint_falls_back_to_command_defaults() {
|
||||
fn config_entrypoint_alone_without_command_or_passthrough() {
|
||||
let cfg = ConfigFile::new(
|
||||
r#"
|
||||
[profile.test]
|
||||
[profiles.test]
|
||||
entrypoint = ["bash", "-c", "echo entrypoint-only"]
|
||||
"#,
|
||||
);
|
||||
@@ -214,7 +214,7 @@ fn cli_entrypoint_overrides_config_entrypoint() {
|
||||
fn config_command_alone_without_passthrough() {
|
||||
let cfg = ConfigFile::new(
|
||||
r#"
|
||||
[profile.test]
|
||||
[profiles.test]
|
||||
command = ["bash", "-c", "echo command-only"]
|
||||
"#,
|
||||
);
|
||||
@@ -234,7 +234,7 @@ fn config_command_alone_without_passthrough() {
|
||||
fn config_command_replaced_by_passthrough() {
|
||||
let cfg = ConfigFile::new(
|
||||
r#"
|
||||
[profile.test]
|
||||
[profiles.test]
|
||||
command = ["bash", "-c", "echo should-not-see-this"]
|
||||
"#,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user