Skip to content

Commit c82e022

Browse files
committed
fix test for get
1 parent d9d3eee commit c82e022

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dsc/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn main() {
6666
let mut cmd = Args::command();
6767
generate(shell, &mut cmd, "dsc", &mut io::stdout());
6868
},
69-
SubCommand::Config { subcommand, parameters, parameters_file, as_group} => {
69+
SubCommand::Config { subcommand, parameters, parameters_file, as_group } => {
7070
if let Some(file_name) = parameters_file {
7171
info!("Reading parameters from file {file_name}");
7272
match std::fs::read_to_string(&file_name) {

dsc/tests/dsc_include.tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ Describe 'Include tests' {
112112

113113
$configPath = Join-Path $TestDrive 'config.dsc.yaml'
114114
$configYaml | Set-Content -Path $configPath
115-
$out = dsc config test -p $configPath | ConvertFrom-Json
115+
$out = dsc config get -p $configPath | ConvertFrom-Json
116116
$LASTEXITCODE | Should -Be 0
117117
if ($IsWindows) {
118-
$inDesiredState = $false
118+
$expectedOS = 'Windows'
119119
} elseif ($IsLinux) {
120-
$inDesiredState = $false
120+
$expectedOS = 'Linux'
121121
} else {
122-
$inDesiredState = $true
122+
$expectedOS = 'macOS'
123123
}
124-
$out.results[0].result.inDesiredState | Should -Be $inDesiredState
124+
$out.results[0].result[0].result.actualState.family | Should -Be $expectedOS
125125
}
126126
}

0 commit comments

Comments
 (0)