buildah and nerdctl fixes
This commit is contained in:
@@ -21,13 +21,8 @@ fn assert_eq(actual, expected, message) {
|
||||
|
||||
// Helper function to check if buildah is available
|
||||
fn is_buildah_available() {
|
||||
try {
|
||||
let command = run("which buildah");
|
||||
let result = command.execute();
|
||||
return result.success;
|
||||
} catch(err) {
|
||||
return false;
|
||||
}
|
||||
let command = run("which buildah");
|
||||
return command.silent().execute().success;
|
||||
}
|
||||
|
||||
print("=== Testing Buildah Builder Pattern ===");
|
||||
@@ -36,8 +31,7 @@ print("=== Testing Buildah Builder Pattern ===");
|
||||
let buildah_available = is_buildah_available();
|
||||
if !buildah_available {
|
||||
print("Buildah is not available. Skipping Buildah tests.");
|
||||
// Exit gracefully without error
|
||||
return;
|
||||
throw err;
|
||||
}
|
||||
|
||||
print("✓ Buildah is available");
|
||||
|
@@ -21,13 +21,8 @@ fn assert_eq(actual, expected, message) {
|
||||
|
||||
// Helper function to check if buildah is available
|
||||
fn is_buildah_available() {
|
||||
try {
|
||||
let command = run("which buildah");
|
||||
let result = command.execute();
|
||||
return result.success;
|
||||
} catch(err) {
|
||||
return false;
|
||||
}
|
||||
let command = run("which buildah");
|
||||
return command.silent().execute().success;
|
||||
}
|
||||
|
||||
// Helper function to check if an image exists
|
||||
@@ -56,8 +51,7 @@ print("=== Testing Buildah Image Operations ===");
|
||||
let buildah_available = is_buildah_available();
|
||||
if !buildah_available {
|
||||
print("Buildah is not available. Skipping Buildah tests.");
|
||||
// Exit gracefully without error
|
||||
return;
|
||||
throw err;
|
||||
}
|
||||
|
||||
print("✓ Buildah is available");
|
||||
|
@@ -21,13 +21,8 @@ fn assert_eq(actual, expected, message) {
|
||||
|
||||
// Helper function to check if buildah is available
|
||||
fn is_buildah_available() {
|
||||
try {
|
||||
let command = run("which buildah");
|
||||
let result = command.execute();
|
||||
return result.success;
|
||||
} catch(err) {
|
||||
return false;
|
||||
}
|
||||
let command = run("which buildah");
|
||||
return command.silent().execute().success;
|
||||
}
|
||||
|
||||
print("=== Testing Buildah Container Operations ===");
|
||||
@@ -36,8 +31,7 @@ print("=== Testing Buildah Container Operations ===");
|
||||
let buildah_available = is_buildah_available();
|
||||
if !buildah_available {
|
||||
print("Buildah is not available. Skipping Buildah tests.");
|
||||
// Exit gracefully without error
|
||||
return;
|
||||
throw err;
|
||||
}
|
||||
|
||||
print("✓ Buildah is available");
|
||||
|
Reference in New Issue
Block a user