components/sbsigntool/patches/04-tests_test_wrapper_sh.patch
author jiawliu <gerry.liu@oracle.com>
Thu, 28 Jul 2016 14:41:31 -0700
changeset 6510 d00d3d1fc778
permissions -rw-r--r--
PSARC/2016/276 sbsigntool integration 23185392 Add sbsigntool to Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6510
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     1
# Source: Internal
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     2
# Info: Written internally so this component can run its testsuite on Solaris.
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     3
# Status: This patch is offered at https://bugs.launchpad.net/ubuntu/+source/sbsigntool/+bug/1588548
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     4
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     5
--- ORIGINAL/tests/test-wrapper.sh	2016-06-10 15:01:05.749653696 -0700
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     6
+++ sbsigntool-0.6/tests/test-wrapper.sh	2016-06-14 17:08:53.739736437 -0700
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     7
@@ -16,7 +16,7 @@
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     8
 
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
     9
 # 'test' needs to be an absolute path, as we will cd to a temporary
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
    10
 # directory before running the test
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
    11
-test="$PWD/$1"
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
    12
+test="$1"
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
    13
 rc=0
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
    14
 
d00d3d1fc778 PSARC/2016/276 sbsigntool integration
jiawliu <gerry.liu@oracle.com>
parents:
diff changeset
    15
 function run_test()