github.com/k8snetworkplumbingwg/sriov-network-operator@v1.2.1-0.20240408194816-2d2e5a45d453/test/scripts/rpm-ostree_mock (about)

     1  #!/usr/bin/sh -x
     2  
     3  # This script is meant to be a mock for `rpm-ostree`
     4  
     5  # Write invocation with arguments to a file to allow making assertion.
     6  echo "$*" >> /rpm-ostree_calls
     7  
     8  if [ "$*" != *"--append"* ]
     9  then
    10      # Caller is trying to read kernel arguments.
    11      cat /proc/cmdline
    12  fi