summaryrefslogtreecommitdiff
path: root/cmd/podman/main_local_unsupported.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-21 14:48:50 +0100
committerGitHub <noreply@github.com>2020-03-21 14:48:50 +0100
commit89a3e5979b5f247e83a1723c7f355983fa7c7a86 (patch)
treeb984a7371d05de8713df0f662eca8a33935f9c30 /cmd/podman/main_local_unsupported.go
parent195a82ffbc435716ef5bb69f6eefa333abe3f840 (diff)
parentde7bcca7d5b0129329b6b08fd241cdc1a768bafb (diff)
downloadpodman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.tar.gz
podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.tar.bz2
podman-89a3e5979b5f247e83a1723c7f355983fa7c7a86.zip
Merge pull request #5579 from mtrmac/macOS-unit-tests
Make macOS unit tests runnable
Diffstat (limited to 'cmd/podman/main_local_unsupported.go')
-rw-r--r--cmd/podman/main_local_unsupported.go44
1 files changed, 44 insertions, 0 deletions
diff --git a/cmd/podman/main_local_unsupported.go b/cmd/podman/main_local_unsupported.go
new file mode 100644
index 000000000..75728627e
--- /dev/null
+++ b/cmd/podman/main_local_unsupported.go
@@ -0,0 +1,44 @@
+// +build !remoteclient,!linux
+
+package main
+
+// The ONLY purpose of this file is to allow the subpackage to compile. Don’t expect anything
+// to work.
+
+import (
+ "syscall"
+
+ "github.com/spf13/cobra"
+)
+
+const remote = false
+
+func setSyslog() error {
+ return nil
+}
+
+func profileOn(cmd *cobra.Command) error {
+ return nil
+}
+
+func profileOff(cmd *cobra.Command) error {
+ return nil
+}
+
+func setupRootless(cmd *cobra.Command, args []string) error {
+ return nil
+}
+
+func setRLimits() error {
+ return nil
+}
+
+func setUMask() {
+ // Be sure we can create directories with 0755 mode.
+ syscall.Umask(0022)
+}
+
+// checkInput can be used to verify any of the globalopt values
+func checkInput() error {
+ return nil
+}