chiark / gitweb /
test suite: lib-baredebian: Provide `origbase'
[dgit.git] / tests / lib-baredebian
index 676ff21cf9d147e711cadf7981efaf9fdf6dbb84..123ce35a0b3bec7eb6f5548d83e6638e4855c006 100644 (file)
@@ -6,6 +6,7 @@ baredebian-test-vars () {
        suite=sid
        uv=${v%-*}
        uvtag=v$uv
+       origbase=${p}_${uv}.orig
        xorigcomps=''
 }
 
@@ -21,12 +22,11 @@ baredebian-test-core () {
 
        t-dgit -wn --dgit-view-save=split.f1 --$quiltmode quilt-fixup
 
-       local orig=${p}_${uv}.orig
-       tar --strip-components=1 -axf ../$orig.tar.*
+       tar --strip-components=1 -axf ../$origbase.tar.*
        for comp in $xorigcomps; do
                mkdir $comp
                cd $comp
-               tar --strip-components=1 -axf ../../$orig-$comp.tar.*
+               tar --strip-components=1 -axf ../../$origbase-$comp.tar.*
                cd ..
        done