mirror of
				https://github.com/YosysHQ/sby.git
				synced 2025-11-03 22:29:12 +00:00 
			
		
		
		
	Don't use -f for intertask tests...
... if we expect the database to still contain previous runs. Use `rm -rf` to clear directories by hand instead.
This commit is contained in:
		
							parent
							
								
									a6496d646f
								
							
						
					
					
						commit
						7c5c96f5ca
					
				
					 2 changed files with 11 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -3,21 +3,21 @@ set -e
 | 
			
		|||
 | 
			
		||||
if [[ $TASK == a ]]; then
 | 
			
		||||
    # different process, no cancellations
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE a
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE b
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE c
 | 
			
		||||
    rm -rf ${WORKDIR}_*
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE a
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE b
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE c
 | 
			
		||||
    test -e ${WORKDIR}_a/PASS -a -e ${WORKDIR}_b/FAIL -a -e ${WORKDIR}_c/FAIL
 | 
			
		||||
elif [[ $TASK == b ]]; then
 | 
			
		||||
    # same process, a cancels c cancels b
 | 
			
		||||
    # use statusdb so that the different taskloops from using --sequential doesn't matter
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE --statusreset || true
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE a c b --sequential --statuscancels
 | 
			
		||||
    test -e ${WORKDIR}_a/PASS -a -e ${WORKDIR}_b/CANCELLED -a -e ${WORKDIR}_c/CANCELLED
 | 
			
		||||
else
 | 
			
		||||
    # different process, b cancels a, c completes before a
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE --statusreset || true
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE b --statuscancels
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE c --statuscancels
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR -f $SBY_FILE a --statuscancels
 | 
			
		||||
    rm -rf ${WORKDIR} ${WORKDIR}_*
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE b --statuscancels
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE c --statuscancels
 | 
			
		||||
    python3 $SBY_MAIN --prefix $WORKDIR $SBY_FILE a --statuscancels
 | 
			
		||||
    echo test -e ${WORKDIR}_a/CANCELLED -a -e ${WORKDIR}_b/FAIL -a -e ${WORKDIR}_c/FAIL
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue