From a3cb25c95547173a1e7d44b5f67acbe015aebd5a Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 13 Nov 2009 14:38:50 -0800 Subject: [PATCH] qa: We want to stop on errors. Add new scripts. --- qa/runallonce.sh | 2 +- qa/runonceph.sh | 6 ++++++ qa/workunits/snaptest1.sh | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100755 qa/runonceph.sh create mode 100644 qa/workunits/snaptest1.sh diff --git a/qa/runallonce.sh b/qa/runallonce.sh index 2d34faf1bf5c7..9d1dfca6bde27 100755 --- a/qa/runallonce.sh +++ b/qa/runallonce.sh @@ -1,6 +1,6 @@ #!/bin/bash -x -#set -e +set -e basedir=`pwd` testdir="${basedir}/testspace" diff --git a/qa/runonceph.sh b/qa/runonceph.sh new file mode 100755 index 0000000000000..1e0aad5c82969 --- /dev/null +++ b/qa/runonceph.sh @@ -0,0 +1,6 @@ +#!/bin/bash -x + +mkdir -p testspace +cfuse testspace -m $1 + +./runallonce.sh \ No newline at end of file diff --git a/qa/workunits/snaptest1.sh b/qa/workunits/snaptest1.sh new file mode 100644 index 0000000000000..7c29d01304149 --- /dev/null +++ b/qa/workunits/snaptest1.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +echo 1 > file1 +echo 2 > file2 +echo 3 > file3 +mkdir .snap/snap1 +echo 4 > file4 +if [ `ls` -eq `ls .snap/snap1` ] + return -1 +fi \ No newline at end of file -- 2.39.5