-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no wonder why the examples gha test was failing. cargo pgx test wasn'…
…t updated to the new PgConfig stuff
- Loading branch information
1 parent
27c1670
commit 666998a
Showing
2 changed files
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
// Copyright 2020 ZomboDB, LLC <[email protected]>. All rights reserved. Use of this source code is | ||
// governed by the MIT license that can be found in the LICENSE file. | ||
|
||
use pgx_utils::pg_config::PgConfig; | ||
use pgx_utils::{exit_with_error, get_target_dir, handle_result}; | ||
use std::process::{Command, Stdio}; | ||
|
||
pub fn test_extension(major_version: u16, is_release: bool) { | ||
pub fn test_extension(pg_config: &PgConfig, is_release: bool) -> Result<(), std::io::Error> { | ||
let major_version = pg_config.major_version()?; | ||
let target_dir = get_target_dir(); | ||
|
||
let mut command = Command::new("cargo"); | ||
|
@@ -32,4 +34,6 @@ pub fn test_extension(major_version: u16, is_release: bool) { | |
if !status.success() { | ||
exit_with_error!("cargo pgx test failed with status = {:?}", status.code()) | ||
} | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters